Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

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