Class: PuppetGenerator::Models::Action
- Inherits:
-
FeduxOrg::Stdlib::Models::BaseModel
- Object
- FeduxOrg::Stdlib::Models::BaseModel
- PuppetGenerator::Models::Action
- 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
-
#convert ⇒ Object
converts an object using the convert method of the stored action.
-
#initialize(name, action) ⇒ Action
constructor
create new instance of action model.
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
#convert ⇒ Object
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 |