Class: Terraspace::Seeder::Actions
- Inherits:
-
Object
- Object
- Terraspace::Seeder::Actions
- Includes:
- Thor::Actions, Thor::Base
- Defined in:
- lib/terraspace/seeder/actions.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Thor requires options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Actions
constructor
Override Thor::Base initialize to set destination_root.
Constructor Details
#initialize(options = {}) ⇒ Actions
Override Thor::Base initialize to set destination_root
17 18 19 20 21 22 |
# File 'lib/terraspace/seeder/actions.rb', line 17 def initialize(={}) # Thor::Base.initialize(args = [], local_options = {}, config = {}) <= original signature [:force] = [:yes] super([], ) self.destination_root = Dir.pwd # Thor::Actions require destination_root to be set end |
Instance Attribute Details
#options ⇒ Object (readonly)
Thor requires options
15 16 17 |
# File 'lib/terraspace/seeder/actions.rb', line 15 def @options end |