Class: Guard::Exec::Runner
- Inherits:
-
Object
- Object
- Guard::Exec::Runner
- Defined in:
- lib/guard/exec/runner.rb
Constant Summary collapse
- DEFAULT_NAME =
'command'.freeze
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Runner
constructor
A new instance of Runner.
- #run(paths = []) ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(options) ⇒ Runner
Returns a new instance of Runner.
8 9 10 |
# File 'lib/guard/exec/runner.rb', line 8 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/guard/exec/runner.rb', line 6 def @options end |
Instance Method Details
#run(paths = []) ⇒ Object
12 13 14 15 16 |
# File 'lib/guard/exec/runner.rb', line 12 def run(paths = []) command = build_command(paths) show_command(command) system(command) end |
#title ⇒ Object
18 19 20 |
# File 'lib/guard/exec/runner.rb', line 18 def title @title ||= "❱ #{name.capitalize}".colorize([:color]) end |