Class: Psychic::Runner::Task
- Inherits:
-
Object
- Object
- Psychic::Runner::Task
- Defined in:
- lib/psychic/task.rb
Instance Method Summary collapse
Instance Method Details
#command ⇒ Object
4 5 6 |
# File 'lib/psychic/task.rb', line 4 def command fail NotImplementedError, 'Subclasses must implement command' end |
#execute(opts) ⇒ Object
8 9 10 11 |
# File 'lib/psychic/task.rb', line 8 def execute(opts) puts "Executing: #{command}" if opts[:verbose] executor.execute(command, opts) end |