Skip to content

Instantly share code, notes, and snippets.

@ploubser
Created February 6, 2013 14:38
Show Gist options
  • Select an option

  • Save ploubser/4722925 to your computer and use it in GitHub Desktop.

Select an option

Save ploubser/4722925 to your computer and use it in GitHub Desktop.
1] MCDB(main)> call :test, :test, {:ivalue => "foobar"}
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Agent::Test from mcollective/agent/test.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:44:in `<<' Registering plugin test_agent with class MCollective::Agent::Test single_instance: true
debug 2013/02/05 22:44:49: pluginmanager.rb:80:in `[]' Returning new plugin test_agent with class MCollective::Agent::Test
debug 2013/02/05 22:44:49: cache.rb:117:in `ttl' Cache miss on 'ddl' key 'agent/test'
debug 2013/02/05 22:44:49: base.rb:93:in `findddlfile' Found test ddl at ./mcollective/agent/test.ddl
debug 2013/02/05 22:44:49: pluginmanager.rb:80:in `[]' Returning new plugin connector_plugin with class NoopConnector
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Any_validator from mcollective/validator/any_validator.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Array_validator from mcollective/validator/array_validator.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Ipv4address_validator from mcollective/validator/ipv4address_validator.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Ipv6address_validator from mcollective/validator/ipv6address_validator.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Length_validator from mcollective/validator/length_validator.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Nettest_fqdn from mcollective/validator/nettest_fqdn.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Nettest_server_address from mcollective/validator/nettest_server_address.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Regex_validator from mcollective/validator/regex_validator.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Service_name from mcollective/validator/service_name.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Shellsafe_validator from mcollective/validator/shellsafe_validator.rb
debug 2013/02/05 22:44:49: pluginmanager.rb:167:in `loadclass' Loading MCollective::Validator::Typecheck_validator from mcollective/validator/typecheck_validator.rb
From: ./mcollective/agent/test.rb @ line 10 MCollective::Agent::Test#test_action:
5: action "test" do
6: foo = 'bar'
7: baz = 'bam'
8:
9: reply[:ovalue] = request[:ivalue]
=> 10: binding.pry
11: end
12:
13: end
14: end
15: end
[1] MCDB(#<MCollective::Agent::Test>)> foo
=> "bar"
[2] MCDB(#<MCollective::Agent::Test>)> baz
=> "bam"
[3] MCDB(#<MCollective::Agent::Test>)>
debug 2013/02/05 22:44:59: cache.rb:105:in `read' Cache hit on 'ddl' key 'agent/test'
local_invocation
OVALUE: foobar
=> {:statuscode=>0, :statusmsg=>"OK", :data=>{:ovalue=>"foobar"}}
[2] MCDB(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment