diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-26 23:30:08 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-26 23:35:38 -0700 |
commit | 59e7ef15507de48f6504ef21a8e0e775104961c6 (patch) | |
tree | f561c905f1a23762c5f6c5c5e90211020aa2d5b2 /lib/puppet/interface/action_manager.rb | |
parent | 092ab09d00474d69361ee757efde2b28c89b39eb (diff) | |
download | puppet-59e7ef15507de48f6504ef21a8e0e775104961c6.tar.gz puppet-59e7ef15507de48f6504ef21a8e0e775104961c6.tar.xz puppet-59e7ef15507de48f6504ef21a8e0e775104961c6.zip |
(#6962) Move documentation support into a module.
Given that we have identical documentation behaviour in the face and action
code, it should properly be written once. So, move it into a module, extend
the other classes with it, and have done.
Diffstat (limited to 'lib/puppet/interface/action_manager.rb')
-rw-r--r-- | lib/puppet/interface/action_manager.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/interface/action_manager.rb b/lib/puppet/interface/action_manager.rb index 440be2d1b..c5eb8e08a 100644 --- a/lib/puppet/interface/action_manager.rb +++ b/lib/puppet/interface/action_manager.rb @@ -1,9 +1,11 @@ -require 'puppet/interface/action_builder' +require 'puppet/interface/action' module Puppet::Interface::ActionManager # Declare that this app can take a specific action, and provide # the code to do so. def action(name, &block) + require 'puppet/interface/action_builder' + @actions ||= {} @default_action ||= nil raise "Action #{name} already defined for #{self}" if action?(name) |