Class: PuppetGenerator::Setup::Role
- Defined in:
- lib/puppet_generator/setup/role.rb
Instance Method Summary collapse
- #create_task ⇒ Object
-
#initialize(options) ⇒ Role
constructor
A new instance of Role.
- #setup_environment ⇒ Object
Constructor Details
#initialize(options) ⇒ Role
Returns a new instance of Role.
5 6 7 |
# File 'lib/puppet_generator/setup/role.rb', line 5 def initialize() super end |
Instance Method Details
#create_task ⇒ Object
21 22 23 24 25 |
# File 'lib/puppet_generator/setup/role.rb', line 21 def create_task Task.new( HashWithIndifferentAccess.new( { command: :role } ).merge @options ) end |
#setup_environment ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/puppet_generator/setup/role.rb', line 9 def setup_environment DefaultErrorMessages.use DefaultImportFilter.use DefaultActions.use DefaultImporter.use DefaultExportFilter.use Models::Template.find_all(:role).collect { |t| t.enable } Models::Importer.enable :directory Models::ExportFilter.enable :build_role_includes_for_directory end |