Class: Soaring::Runner
- Inherits:
-
Object
- Object
- Soaring::Runner
- Defined in:
- lib/soaring/runner.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Runner
Returns a new instance of Runner.
3 4 5 |
# File 'lib/soaring/runner.rb', line 3 def initialize() @options = end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/soaring/runner.rb', line 7 def run Dir.chdir(@options[:project_root]) do if @options[:autorestart] run_repeatedly else run_once end end end |