Class: Guard::Evergreen::Runner

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Runner

Returns a new instance of Runner.



13
14
15
16
17
# File 'lib/guard/evergreen/runner.rb', line 13

def initialize(options = {}) 
  @options = { 
    :verbose => true
  }.merge(options)
end

Class Method Details

.run(paths = [], options = {}) ⇒ Object



8
9
10
# File 'lib/guard/evergreen/runner.rb', line 8

def run(paths = [], options = {}) 
  Runner.new(options).run(paths, options)
end

Instance Method Details

#run(paths, options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/guard/evergreen/runner.rb', line 19

def run(paths, options = {})
  message = options[:message] || "Running: evergreen run"
  UI.info message, :reset => true
  system(command(paths))
end

#verbose?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/guard/evergreen/runner.rb', line 25

def verbose?
  @options[:verbose]
end