Class: Guard::Rack::Command
- Inherits:
-
Object
- Object
- Guard::Rack::Command
- Defined in:
- lib/guard/rack/command.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(options = {}) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(options = {}) ⇒ Command
Returns a new instance of Command.
8 9 10 |
# File 'lib/guard/rack/command.rb', line 8 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/guard/rack/command.rb', line 6 def @options end |
Instance Method Details
#build ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/guard/rack/command.rb', line 12 def build cmd = [[:cmd]] cmd << configuration cmd << environment cmd << host cmd << port cmd << daemon cmd << debug cmd << server cmd.flatten.compact end |