search for: mymodul

Displaying 20 results from an estimated 131 matches for "mymodul".

Did you mean: mymodule
2012 Sep 28
2
nested modules and autoloading
All- I''m using puppet 2.7.14. I''ve reviewed http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html but it doesn''t seem to cover what I''m attempting. Consider a module layout like this: $ tree mymodule mymodule |-- Modulefile |-- README |-- manifests | |-- init.pp | |-- special_type | | `-- prereqs.pp | `-- special_type.pp |-- spec | `-- spec_helper.rb `-- tests `-- init.pp 4 directories, 7 files $ egrep -v ''^#|^$'' mymodule/manifests/init.pp class mymodule(...
2013 Dec 02
1
Class parameter flexibility with ENC, hiera or both
...pet flavors as possible. This is our target: - Foreman users, using foreman as an ENC with smart variables (or potentially any other ENC, but I would say this is the most widespread one). - Pure Puppet''s site.pp users with Hiera as the only data binding. But let''s say that within mymodule there is a define mymodule::mydefine that uses variable values from mymodule, let''s say mymodule::parameter1. I need to include mymodule to be able to use it, right? This is the example: class mymodule (param1 = ''default_value'') { } define mymodule::mydefine () { inc...
2003 Apr 28
1
code12 when using modules
Hi I updated my rsync to 2.5.6. Since then, any modules actions don't work anymore. rsync -ravvvn --stats --progress rollis.ch::mymodule ends up in opening tcp connection to rollis.ch port 873 receiving file list ... rsync: connection unexpectedly closed (28 bytes read so far) _exit_cleanup(code=12, file=io.c, line=165): entered rsync error: error in rsync protocol data stream (code 12) at io.c(165) _exit_cleanup(code=12, file=io...
2008 Feb 18
3
Calling a controller inside a module
I tryied everything: :controller => ''MyModule::Core::Controller'' require ''MyModule/core/controller'' include MyModule::Core But nothing works !!! Question is very simple: How to call a controller that belongs to a Module inside the router.rb file? This cannot be that difficult! Thanks! -Sergio --------------...
2007 Aug 31
2
Can module spec "behave like" controller spec?
...it seems that the rspec does not allow module spec to ''get'' action like controller does. After I saw the documentation, I then used :behaviour_type=>:controller. However, it failed again. It reported an error for me. For illustration, I''d like a simple example. module MyModule def copy #an action method render :partial=>"/index", :layout=>false end end describe MyModule, :behaviour_type=>:controller do it "should render partial index" do get ''copy'' #test code not provided yet, just want to get t...
2011 Nov 11
2
[LLVMdev] Argument's types mismatch when creating CallInst.
...pe* arg2, %type* arg3). Firstly, i do this: runtimeModule = getLazyIRFileModule("runtime.bc", smd, llctx); then this: fooFunction = runtimeModule->getFunction("foo"); myType = runtimeModule->getTypeByName("type"); After that, i'm creating another module: myModule = new Module("My Module", llctx); and create some AllocaInsts with type %type: AllocaInst * retZval = new AllocaInst(myType, "arg1", currentBB); Finally, i do CallInst::Create(fooFunction, a...
2010 Jun 23
3
Custom default form builder in Rails 3
Hello everyone, I am trying to set a default custom form builder. I have defined my form builder class in "lib/mymodule/mybuilder.rb" as: module Mymodule class Mybuilder < ActionView::Helpers::FormBuilder ...... end end Then I am trying to use this custom class in application.rb as config.action_view.default_form_builder = Mymodule::Mybuilder. But I get "Uninitialized constant error." D...
2012 Aug 17
8
Class Naming Convention
...slog'' which provides both a client and a server class. I typically have used syslog::server and syslog::client. I''ve ended up using this convention more than init.pp because I don''t know when I first put the class together exactly what it''s going to do. In module mymodule, rather than create init.pp with class mymodule, I''ll call it mymodule::base or something and stick it in base.pp. Confused... Doug -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-u...
2013 Nov 05
1
[LLVMdev] Thread-safe cloning
...re? In case you are interested, here is the algorithm I'm using to copy a Module to a same (or different) LLVMContext: if (&context == &other.myContext) { // If the context is shared, we can use cloning ValueToValueMapTy map; myModule = CloneModule(other.myModule, map); } else { // Otherwise, round trip the module to a stream and then back // into the new context. This approach allows for duplication // and optimization to proceed in parallel for different...
2006 Jul 27
2
accessing a variable inside a plugin
Hello, I would like to load an Hash in my init.rb plugin file ... than I would like to use this hash in my module ... in my init.rb: @anHash = load From file... in mymodule: module Amodule def myFunction #@anHash .... end end How can I access to my hash in my plugin module function ? thanks for this dummy question ;-) Arnaud
2013 Jun 11
2
hiera data bindings and template()
...heavily relying on hiera data bindings. I have the following situation: class software ( $my_content = undef, ) { file { ''/path/to/file'': content => $software::my_content, } } in hieradata/software.yaml (hiera.yaml seems ok): software::my_content: template(''mymodule/myfile.erb'') With this configuration I get /path/to/file to contain the string ''template(mymodule/myfile.erb)'' (that is, template() function isn''t evaluated). Is this a normal behaviour? Of course if I declare my class with: class { ''software'...
2009 Jun 11
3
OT: rebuild kmod rpm package from src.rpm
Hi all, I would like to rebuild a kmod.src.rpm package for a specific kernel. When I try to do it, this message appears: Building target platforms: i686 Building for target i686 error: Failed build dependencies: kernel-xen-devel-i686 = 2.6.18-98.el5 is needed by mymodule-kmod-0.1.5-2.i686 kernel-PAE-devel-i686 = 2.6.18-98.el5 is needed by mymodule-kmod-0.1.5-2.i686. Is it possible to rebuild kmod.src.package only for certain kernel?? i don't need to rebuild this module for kernel-xen or kernel-PAE only for kernel-i686 ... Thanks. -- CL Marti...
2003 Nov 01
0
@ERROR: access denied / using rsync 2.5.6 over SSH on Solaris
...ync: version 2.5.6 downloaded in package format from www.sunfreeware.com (already compiled; any comments here?) * SSH version 3.2.0 * Our addresses are IPv4; all our DNS services are working properly. * rsyncd.conf at alicia's $HOME: [global] log file = /export/home/alicia/rsyncd.log [mymodule] comment = "some comment" path = /export/home/alicia lock file = /export/home/alicia/rsyncd.lock use chroot = no readonly = no hosts allow = aaa.bbb.ccc.ddd, mymachine.domain.subdomain.net * I get this failure: $ rsync myfile mymachine.domain.subdomain.net::mymodule -...
2006 Aug 08
2
Extending rails with plugins
...looking at bottling some functionality up into a plugin, but I''m having some problems including it. The structure I have is: /app/controllers/admin/base_controller.rb: class Admin::BaseController > ApplicationController #snip# end /vendor/plugins/myplugin/lib/my_module.rb: module MyModule def new_func "New Function" end end /vendor/plugins/myplugin/init.rb: require ''my_module'' Admin::BaseController.send :include, MyModule However, this gives me an ''uninitialized constant ApplicationController (NameError)'' error when I...
2011 Nov 11
0
[LLVMdev] Argument's types mismatch when creating CallInst.
...gt; runtimeModule = getLazyIRFileModule("runtime.bc", smd, llctx); > > then this: > > fooFunction = runtimeModule->getFunction("foo"); > myType = runtimeModule->getTypeByName("type"); > > After that, i'm creating another module: > > myModule = new Module("My Module", llctx); > > and create some AllocaInsts with type %type: > > AllocaInst * retZval = new AllocaInst(myType, >                                           "arg1", >                                           currentBB); > > Finally,...
2012 Jul 09
1
Custom ruby modules/classes, standard namespacing, pluginsync, etc.
still pretty new to Ruby, please bare with me :) Say I have a module with a custom type, structured like so: [modules]/mymodule/manifests/init.pp [modules]/mymodule/lib/puppet/provider/mytype/foo.rb [modules]/mymodule/lib/puppet/type/mytype.rb In foo.rb, I''d like to call some custom ruby functions in a module and/ or class. These are generic functions that may be used in other modules, e.g. md5.rb with a collecti...
2009 Aug 25
0
[LLVMdev] std::cout << *MyModule does not work anymore
Óscar Fuentes wrote: > The changes are not trivial, as for instance llvm::raw_fd_ostream > without flags fails if the file exists, but std::ofstream does not. The > changes include using new names for flags that already exist on the > standard namespace (F_Force instead of O_TRUNC, etc). Also, each of LLVM <=2.5, 2.6 and 2.7(svn) provide their own, incompatible llvm::raw_fd_ostream
2009 Aug 25
0
[LLVMdev] std::cout << *MyModule does not work anymore
Hi Óscar, > Maybe there was a solution that was okay for those concerned with fast & > lightweight executables and for the others who care most about > consistency and code stability. I would appreciate if this changes are > discussed before applying them on the future (maybe I missed the > thread), flagging the subject with something that indicates that the > outcome of the
2009 Aug 25
2
[LLVMdev] std::cout << *MyModule does not work anymore
On Aug 25, 2009, at 1:04 AM, Albert Graef wrote: > . For many applications > other than LLVM itself, the basic LLVM <=2.5 interface which just > overwrites existing files is all that's ever needed. On LLVM trunk, raw_fd_ostream is now back to overwriting files by default, as it is the unanimous preference among in-tree users (and out-of-tree users that I'm aware of). Dan
2009 Aug 25
0
[LLVMdev] std::cout << *MyModule does not work anymore
Dan Gohman wrote: > > On Aug 25, 2009, at 1:04 AM, Albert Graef wrote: >> . For many applications >> other than LLVM itself, the basic LLVM <=2.5 interface which just >> overwrites existing files is all that's ever needed. > > On LLVM trunk, raw_fd_ostream is now back to overwriting files by > default, as it is the unanimous preference among in-tree users