Class: Psychic::Runner::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/psychic/task.rb

Instance Method Summary collapse

Instance Method Details

#commandObject



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