Class: Guard::Gitpusher

Inherits:
Guard
  • Object
show all
Defined in:
lib/guard/gitpusher.rb

Constant Summary collapse

VERSION =
'0.2.0'

Instance Method Summary collapse

Instance Method Details

#run_on_change(res) ⇒ Object

Print the result of the command, if there is a result to be printed. (see README.md)

Parameters:

  • res (Array)

    the result of the commands that have run



14
15
16
# File 'lib/guard/gitpusher.rb', line 14

def run_on_change(res)
  puts res[0] if res[0]
end