Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

require equivalent in Ruby DSL

Questions regarding Puppet with httpd.conf
(27 lines)
How to add Node Description as extra column in table overview
(19 lines)
Feb 9, 2012
Sateesh
Sateesh
Hi,

What is the "require 'class'" equivalent in Ruby DSL.

in pp file when I say require 'swift::common' in pp file, class is
located in /etc/modules/puppet/swift/manifests/common.pp is working
fine.

But when I keep that in RubyDSL file, I am getting error

(eval):3:in `require': no such file to load -- swift::common
(LoadError)

Thanks in advance,
Sateesh B.





Reply
Tags: class equivalentpuppetrubydsl
Equivalent of JsonDecoder for Ruby?
November 21, 2011 03:53:05 PM
I'm currently using Avro to serialize/deserialize data in Java and Ruby. In Java, I can use JsonDecoder to deserialize a JSON string as an Avro buffer. What is the equivalent class in Ruby? I searched the source repository at…
Created] (AVRO-787) Ruby 1.9 compatibility to 'require' and run tests
March 22, 2011 04:00:45 PM
Ruby 1.9 compatibility to 'require' and run tests
(puppetlabs/facter) New pull request: (#9593) Require rubygems to handle json output for ruby 1.8.7.
September 19, 2011 09:16:28 AM
Greetings! Please review the pull request #60:(#9593) Require rubygems to handle json output for ruby 1.8.7. [Link: https://github.com/puppetlabs/facter/pull/60 ] opened by (kbarber) Some more information about the pull request: *…
(puppetlabs/facter) Closed pull request: (#9593) Require rubygems to handle json output for ruby 1.8
September 19, 2011 11:34:08 AM
Greetings! On Mon Sep 19 16:16:52 UTC 2011 pull request #60 was closed. (#9593) Require rubygems to handle json output for ruby 1.8.7. [Link: https://github.com/puppetlabs/facter/pull/60 ] requested by (kbarber) Thanks! The Pull…
Created] (THRIFT-1204) Ruby autogenerated files should require 'thrift' gem
June 13, 2011 09:35:48 PM
Ruby autogenerated files should require 'thrift' gem
Inconsistency: varchar is equivalent to varchar(255) and also not equivalent?
October 3, 2011 11:41:26 AM
Hi, here is the testcase: create type mytype as (id integer, t varchar(255)); create table mytest (id serial, t1 varchar(255), t2 varchar(255)); create or replace function myfunc () returns setof mytype as $$ begin return query select id, (t1…
Updated: (AVRO-564) Ruby tests should not leave lang/ruby/data.avr file hanging around
June 5, 2010 09:35:53 PM
[ https://issues.apache.org/jira/browse/AVRO-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Hammerbacher updated AVRO-564:
Created: (AVRO-564) Ruby tests should not leave lang/ruby/data.avr file hanging around
June 5, 2010 09:35:53 PM
Ruby tests should not leave lang/ruby/data.avr file hanging around
Created] (THRIFT-1183) Pure-ruby CompactProtocol raises ArgumentError when deserializing under Ruby
May 29, 2011 02:47:54 AM
Pure-ruby CompactProtocol raises ArgumentError when deserializing under Ruby 1.9
Updated: (THRIFT-664) Ruby extension fails to build with Ruby 1.9.1
August 8, 2010 03:50:40 PM
[ https://issues.apache.org/jira/browse/THRIFT-664?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Bryan Duxbury updated THRIFT-664:
Commented] (THRIFT-664) Ruby extension fails to build with Ruby 1.9.1
October 6, 2011 03:33:52 PM
[ https://issues.apache.org/jira/browse/THRIFT-664?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 13122258#comment-13122258 ] Luis Eduardo Villares Matta commented on THRIFT-664:
Cannot connect to mongo database through ruby driver from a ruby daemon
April 3, 2011 08:14:44 AM
I'm using: mailman gem daemons gem mongoid gem rails 3 When daemonizing the mailman gem it will load the Rails Environment and access models just fine until I attempt to access the database. At this point, I can't get a connection to the…
Closed: (THRIFT-664) Ruby extension fails to build with Ruby 1.9.1
August 11, 2010 01:40:46 PM
[ https://issues.apache.org/jira/browse/THRIFT-664?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Bryan Duxbury closed THRIFT-664.
Commented: (THRIFT-664) Ruby extension fails to build with Ruby 1.9.1
August 9, 2010 10:32:44 AM
[ https://issues.apache.org/jira/browse/THRIFT-664?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12896590#action_12896590 ] Bryan Duxbury commented on THRIFT-664:
Commented: (THRIFT-664) Ruby extension fails to build with Ruby 1.9.1
August 8, 2010 04:04:44 PM
[ https://issues.apache.org/jira/browse/THRIFT-664?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12896408#action_12896408 ] Rajesh Malepati commented on THRIFT-664:
Updated: (THRIFT-664) Ruby extension fails to build with Ruby 1.9.1
August 8, 2010 03:43:43 PM
[ https://issues.apache.org/jira/browse/THRIFT-664?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Rajesh Malepati updated THRIFT-664:
Commented: (THRIFT-664) Ruby extension fails to build with Ruby 1.9.1
August 9, 2010 11:19:43 AM
[ https://issues.apache.org/jira/browse/THRIFT-664?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12896603#action_12896603 ] Rajesh Malepati commented on THRIFT-664:
How do you distribute ruby-augeas for ruby-entreprise?
March 15, 2011 10:10:25 AM
We are using ruby-entreprise, instead of redhat's default ruby.... I was trying to deploy the needed gem using: /opt/ruby-enterprise/bin/gem install --no-rdoc --no-ri /tmp/ruby-augeas-0.3.0.gem But found out this would require gcc to be…
ruby tutorial does not work with 2.0db 1.4 ruby lib
September 24, 2011 07:58:33 PM
The code below fails the check for updated code when following the instructions from the tutorial. Am I missing something? The tutorial out of date? Bug? #!/usr/bin/env ruby require 'mongo' #…
Equivalent: <ant
July 8, 2011 10:21:23 AM
Are the two statements below equivalent? <antcall target="doit" InheritRefs="true" /> <runtarget target="doit" /> Enjoy, Steve Amerige SAS Institute, Deployment Software Developer
Require ruby gems in rails controller
February 8, 2011
require 'rubygems' require 'mechanize' agent = Mechanize.new page = agent.get("http://google.com/") This simple script works ok. But if I'am trying…
Ruby equivalent of PHP openssl_seal
March 6, 2011
Does anyone know if ruby implements something similar to the openssl_seal function from PHP? I'd like to be able to interact with a server running a…
X509Certificate Java Class equivalent in Ruby?
May 31, 2011
Hello, within Java, to gather the user's certs, you could achieve this by: X509Certificate[] certs = (X509Certificate[])…
IIS 7 Disabling "Require SSL"
January 21, 2011
Deployed an ASP.NET application to our internal production server as a virtual directory under the default web site. I had been getting 403 errors…
Changing WCF service to require SSL
March 10, 2011
I have a WCF service which was running fine on a http binding. I've tried to update this to use SSL but i am getting the following error: "Could not…
Postfix: don't require TLS for certain hosts?
January 27, 2011
I am trying to setup a Postfix relay so that it will not require TLS authentication from certain hosts in order to relay mail. Basically, this is…
SQL update that seems to require GROUP BY
February 9, 2011
I have an update I'd like to make to a table, something like UPDATE mytable LEFT JOIN worker ON first=worker_first_name &&…
How to require username + certificate with apache?
May 15, 2011
I'm running an apache instance on a local server and wan't to require a username plus a corresponding certificate to authenticate/authorize users…
How do I require HTTPS for this Django view?
January 24, 2011
(r'^login/?$','django.contrib.auth.views.login',{'template_name':'login.html', 'authentication_form':CustomAuthenticationForm}), How do I add HTTPS…
Making an exception for SSLVerifyClient require
February 16, 2011
Hi there, I have apache2 httpd version 2.2.9 listening on port 443 with SSLEngine on. All URLs have SSLVerifyClient require and this works fine. I…
Perl require doesn't work in apache
March 27, 2011
I'm trying to organize a few perl scripts in a way so I can reuse some functions between them. The directive 'require' however doesn't seem to work…
Using require statments with if/elseif statements
January 14, 2011
Hello is there a way to write if/ elseif statements to display multiple php pages using require statements. I am currently collecting articles from…
Jetty require SSL client certificate by URL
January 14, 2011
I would like to run a servlet in Jetty on an HTTPS site that requires a client certificate for only part of the site (specific URLs). For example:…
Why do DNS zone files require NS records?
April 3, 2011
Say I've operating ns1.example.org and ns2.example.org on which I want to host the zone file for example.com When I go to my registrar and purchase…
.htaccess remove Require for certain directory
April 22, 2011
I have the following in my httpd.conf AuthName "Foo" <Limit GET HEAD OPTIONS CONNECT POST PROPFIND PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK…
Negative Lookbehahind Regular Expression in Ruby - How do I match only "\(" and not "(" in Ruby ?
March 5, 2011
I'm trying to write a regular expression that matches strings like these: title(Hello+World) #=> [title, Hello+World] title(\(Hello+World\))…
Require help in validating the IpAddress string using Regex
April 11, 2011
Hi all, I have string in format 172.60.136.145,172.60.136.146,172.60.136.147,........ Regards, Dev
Does installing FTP 7.5 on Winows 2008 require a reboot?
May 5, 2011
I want to install the new FTP 7.5 on a Windows 2008 server. Do I need to schedule this for a time when it is ok to Reboot the server?
Does including require("db.php") at the top of every php page slow things down?
February 28, 2011
My db.php file connects to, selects, and creates databases and tables if they do not exist. When I require("db.php") at the top of every page does…
"security.OCSP.require" in Google Chrome
March 23, 2011
https://blog.torproject.org/blog/detecting-certificate-authority-compromises-and-web-browser-collusion "Users of Mozilla Firefox that are concerned…