Class: Guard::Evergreen::Runner
- Inherits:
-
Object
- Object
- Guard::Evergreen::Runner
- Defined in:
- lib/guard/evergreen/runner.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Runner
constructor
A new instance of Runner.
- #run(paths, options = {}) ⇒ Object
- #verbose? ⇒ Boolean
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 = { :verbose => true }.merge() end |
Class Method Details
Instance Method Details
#run(paths, options = {}) ⇒ Object
19 20 21 22 23 |
# File 'lib/guard/evergreen/runner.rb', line 19 def run(paths, = {}) = [:message] || "Running: evergreen run" UI.info , :reset => true system(command(paths)) end |
#verbose? ⇒ Boolean
25 26 27 |
# File 'lib/guard/evergreen/runner.rb', line 25 def verbose? @options[:verbose] end |