Class: Taketo::Actions::BaseAction
- Inherits:
-
Object
- Object
- Taketo::Actions::BaseAction
- Defined in:
- lib/taketo/actions/base_action.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#destination_path ⇒ Object
readonly
Returns the value of attribute destination_path.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(options) ⇒ BaseAction
constructor
A new instance of BaseAction.
Constructor Details
#initialize(options) ⇒ BaseAction
Returns a new instance of BaseAction.
10 11 12 13 |
# File 'lib/taketo/actions/base_action.rb', line 10 def initialize() @options = @destination_path = [:destination_path] end |
Instance Attribute Details
#destination_path ⇒ Object (readonly)
Returns the value of attribute destination_path.
8 9 10 |
# File 'lib/taketo/actions/base_action.rb', line 8 def destination_path @destination_path end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/taketo/actions/base_action.rb', line 8 def @options end |
Instance Method Details
#config ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/taketo/actions/base_action.rb', line 15 def config @config ||= begin config_file = [:config] DSL.new.configure(config_file).tap do |config| traverser = ConfigTraverser.new(config) ConfigValidator.new(traverser).validate! end end end |