Class: Soaring::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/soaring/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Runner

Returns a new instance of Runner.



3
4
5
# File 'lib/soaring/runner.rb', line 3

def initialize(options)
  @options = options
end

Instance Method Details

#runObject



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