Class: Wrake::Command
- Inherits:
-
Object
- Object
- Wrake::Command
- Defined in:
- lib/wrake/command.rb,
lib/wrake/command/options.rb
Defined Under Namespace
Classes: Options
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(options) ⇒ Command
Returns a new instance of Command.
5 6 7 8 |
# File 'lib/wrake/command.rb', line 5 def initialize() = Wrake.config.from_file(.config_file, .env) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/wrake/command.rb', line 3 def end |
Instance Method Details
#execute ⇒ Object
10 11 12 |
# File 'lib/wrake/command.rb', line 10 def execute Wrake.api.invoke_task(.task_name, args: .task_args) end |