Method: Async::Runner::Command#call

Defined in:
lib/async/runner/command.rb

#callObject

Prepare the environment and invoke the sub-command.



66
67
68
69
70
71
72
73
74
# File 'lib/async/runner/command.rb', line 66

def call
  if @options[:version]
    puts "#{self.name} v#{Async::Runner::VERSION}"
  elsif @options[:help]
    self.print_usage
  else
    run
  end
end