Displaying 20 results from an estimated 6000 matches similar to: "code12 when using modules"
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
2003 Nov 01
0
@ERROR: access denied / using rsync 2.5.6 over SSH on Solaris
Dear list members,
this is very similar to a problem which has been discussed last summer
on the list, but there was no final solution then (as far as I could
follow the thread of messages). Would you please take a look at my
problem, to see if I'm missing something?
Here is the useful data:
* Purpose: using rsync over SSH as a non-anonymous file server to
transfer files between two
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,
2013 Dec 02
1
Class parameter flexibility with ENC, hiera or both
Dear puppetteers,
I am having a philosophical question about parametrized classes.
When building modules, one wants to be as flexible as possible, to try
to target as many puppet 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
2011 Nov 11
2
[LLVMdev] Argument's types mismatch when creating CallInst.
Hello. I have an .bc, which defines @foo(%type* arg1, %type* 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
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
-------------- next part --------------
An HTML attachment
2007 Aug 31
2
Can module spec "behave like" controller spec?
Hello everyone:
Right now I am writing spec on modules, which are provided by my
colleagues. Some of the modules actually contain action methods. I tried
very hard to spec those action methods in modules. But 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.
2013 Nov 05
1
[LLVMdev] Thread-safe cloning
Sorry to resurrect an old thread, but I finally got around to testing
this approach (round tripping through bitcode in memory) and it works
beautifully - and isn't that much slower than cloning.
I have noticed however that the copy process isn't thread-safe. The
problem is that in Function, there is lazy initialization code for
arguments:
void CheckLazyArguments() const {
if
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
2013 Jun 11
2
hiera data bindings and template()
Hi,
I''m using Puppet 3.2.1 and 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
2003 Mar 02
1
rsync2.5.6 can't find system config file
I had rsync2.5.5 running fine ona RedHat Linux 8 system. I downloaded the rsync2.5.6 code and it compiled with no problems. However, operations which worked before are now failing. Here is my rsyncd.conf file
uid = nobody
gid = nobody
# use chroot = no
max connections = 4
syslog facility = local5
pid file = /var/run/rsyncd.pid
motd file = /etc/rsyncd.motd
[ftp]
path = /var/ftp/pub
2002 Oct 02
0
error in rsync protocol datastream(code12) at io.c(150)
Hi,
I installed rsync-2.5.5 on both the boxes of redhat linux 7.3 and tried to execute rsync
on box "A"
I have given command like below
rsync -avz /tmp/*.jsp machineb:/home/domains/rsyncdir/
but I got this problem
error in rsync protocol datastream(code12) at io.c(150)
OpenSSH vesrion is
OpenSSH_3.1P1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
Do I need to upgrade
2011 Nov 11
0
[LLVMdev] Argument's types mismatch when creating CallInst.
On Fri, Nov 11, 2011 at 12:18 AM, arrowdodger <6yearold at gmail.com> wrote:
> Hello. I have an .bc, which defines @foo(%type* arg1, %type* arg2, %type*
> arg3).
> Firstly, i do this:
>
> runtimeModule = getLazyIRFileModule("runtime.bc", smd, llctx);
>
> then this:
>
> fooFunction = runtimeModule->getFunction("foo");
> myType =
2006 Aug 08
2
Extending rails with plugins
I''ve been 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
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
2004 May 20
3
two-way synchronization accross a firewall fails
machine O is outside firewall, machine I is inside (machine names changed to
protect the innocent :-)
firewall allows ssh connections if inititiated from I to O, but not if the
other way.
both machines have an /etc/rsyncd.conf of:
[rt]
path = /tmp/rsync_test
comment = Test area
O runs rsync daemon, I initiates a rsync cammnad like
rsync -rvvv --delete --rsh=ssh O::rt /tmp/rsync_test
2013 Oct 29
1
[LLVMdev] Non-deterministic behavior when using LoopInfo pass in LLVM
Hello,
I'm having a little problem with passes that use LoopInfo. Their statistics
aren't the same when I execute the same pass multiple times in the same
program.
After some investigation, I've found out that LoopInfo is the root of the
problem.
I wrote a little pass that counts the loop headers (number of basic blocks
for which LoopInfo.isLoopHeader(BB) is true). I've picked
2012 Aug 17
8
Class Naming Convention
So, this has always puzzled me a bit. By convention, init.pp contains
one class, named the same as the module. However, what is the
convention when the module may have multiple external access points?
Say you have a module called ''syslog'' which provides both a client and
a server class. I typically have used syslog::server and
syslog::client. I''ve ended up using this
2004 Jun 25
4
A question about connection refused
I install rsync in computer and run it as a daemon successfully, but when I
run rsync command on another end to connect it. There is a error.
The output is :
opening tcp connection to 192.168.0.43 port 873
rsync: failed to connect to 192.168.0.43: Connection refused
_exit_cleanup(code=10, file=clientserver.c, line=93): entered
rsync error: error in
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