Method: Puppet::Interface::ActionManager#get_default_action
- Defined in:
- lib/vendor/puppet/interface/action_manager.rb
#get_default_action ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/vendor/puppet/interface/action_manager.rb', line 63 def get_default_action default = actions.map {|x| get_action(x) }.select {|x| x.default } if default.length > 1 raise "The actions #{default.map(&:name).join(", ")} cannot all be default" end default.first end |