class Safit::Cli
Public Instance Methods
done()
click to toggle source
# File lib/safit/cli.rb, line 43 def done Safit::Gntp.notify 'done' end
exec(*command)
click to toggle source
# File lib/safit/cli.rb, line 30 def exec(*command) cmd = command.join(' ') Kernel.fork do Process.exec cmd end Process.wait Safit::Gntp.notify $?.success? ? "DONE: #{cmd}" : "FAIL: #{cmd}" exit $?.exitstatus end
notify(message)
click to toggle source
# File lib/safit/cli.rb, line 25 def notify(message) Safit::Gntp.notify message end