
Untitled
By: a guest on
Apr 15th, 2012 | syntax:
None | size: 1.63 KB | hits: 9 | expires: Never
775 yaml_dev:master! % rdebug puppet -- catalog compareyaml node.lst jeff ttys004
[-2, 4] in /Users/jeff/catalogs/puppet27/puppet/bin/puppet
1 #!/usr/bin/env ruby
2
=> 3 require 'puppet/util/command_line'
4 Puppet::Util::CommandLine.new.execute
/Users/jeff/catalogs/puppet27/puppet/bin/puppet:3
require 'puppet/util/command_line'
(rdb:1) break /Users/jeff/catalogs/puppet27/faces/catalog_yaml/lib/puppet/face/catalog/compareyaml.rb:19
Breakpoint 1 file /Users/jeff/catalogs/puppet27/faces/catalog_yaml/lib/puppet/face/catalog/compareyaml.rb, line 19
(rdb:1) c
/Users/jeff/catalogs/puppet27/faces/catalog_yaml/lib/puppet/face/catalog/compareyaml.rb:18: warning: multiple values for
a block parameter (2 for 1)
from /Users/jeff/catalogs/puppet27/puppet/lib/puppet/interface/action.rb+eval:90
Breakpoint 1 at /Users/jeff/catalogs/puppet27/faces/catalog_yaml/lib/puppet/face/catalog/compareyaml.rb:19
[14, 23] in /Users/jeff/catalogs/puppet27/faces/catalog_yaml/lib/puppet/face/catalog/compareyaml.rb
14
15 # JJM 2011-04-14 (I _think_ *args is the naive way of doing things)
16 # when_invoked do |*args|
17
18 when_invoked do |options|
=> 19 options
20 # JJM 2011-04-14 There needs to be a better way to do this. Look into
21 # Puppet::Interface::ActionBuilder#option
22 raise ArgumentError, "Usage: puppet catalog compareyaml node.lst dir_old/ dir_new/" unless args.length >= 3
23 nodelist = args[0]
/Users/jeff/catalogs/puppet27/faces/catalog_yaml/lib/puppet/face/catalog/compareyaml.rb:19
options
(rdb:1) options
["node.lst", {}]