class Guard::Garlando
Public Class Methods
new(options={})
click to toggle source
Calls superclass method
# File lib/guard/garlando.rb, line 3 def initialize(options={}) super tuples = %w(-s -o -p -P -E).zip(options.values_at *%i(server host port pid env)) @option = tuples.reject { |_, e| e.nil? }.map { |e| e * ' ' } * ' ' end
Public Instance Methods
start()
click to toggle source
# File lib/guard/garlando.rb, line 9 def start spawn 'garlando #{@option} &' end
stop()
click to toggle source
# File lib/guard/garlando.rb, line 13 def stop system 'garlando stop' end