Class: PuppetGenerator::Models::Action

Inherits:
FeduxOrg::Stdlib::Models::BaseModel
  • Object
show all
Extended by:
Forwardable
Includes:
FeduxOrg::Stdlib::Models::ClassBasedModel, FeduxOrg::Stdlib::Models::FilesystemBasedModel
Defined in:
lib/puppet_generator/models/action.rb

Overview

model for import action

Instance Method Summary collapse

Constructor Details

#initialize(name, action) ⇒ Action

create new instance of action model



17
18
19
20
21
# File 'lib/puppet_generator/models/action.rb', line 17

def initialize( name , action )
  super(name)

  @action = action
end

Instance Method Details

#convertObject

converts an object using the convert method of the stored action



14
# File 'lib/puppet_generator/models/action.rb', line 14

def_delegator :@action, :run, :run