Class: Ridgepole::Rails::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Ridgepole::Rails::RakeTask
- Defined in:
- lib/ridgepole/rails/rake_task.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
Returns the value of attribute operation.
Instance Method Summary collapse
-
#initialize(name) ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(name) ⇒ RakeTask
Returns a new instance of RakeTask.
8 9 10 11 12 13 14 15 |
# File 'lib/ridgepole/rails/rake_task.rb', line 8 def initialize(name) task name, :rails_env do |_t, args| self.operation = name yield self if block_given? = {out: IO::NULL} sh Command.build(operation, args[:rails_env]).command, end end |
Instance Attribute Details
#operation ⇒ Object
Returns the value of attribute operation.
17 18 19 |
# File 'lib/ridgepole/rails/rake_task.rb', line 17 def operation @operation end |