Class: Fyi
- Inherits:
-
Object
- Object
- Fyi
- Defined in:
- lib/fyi.rb,
lib/fyi/config.rb,
lib/fyi/version.rb,
lib/fyi/notifiers/log.rb,
lib/fyi/notifiers/email.rb
Overview
See /bin/fyi for documentation.
Defined Under Namespace
Constant Summary collapse
- VERSION =
'1.0.10'
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(command) ⇒ Fyi
constructor
A new instance of Fyi.
- #run ⇒ Object
Constructor Details
Class Method Details
.run(command) ⇒ Object
14 15 16 |
# File 'lib/fyi.rb', line 14 def self.run(command) new(command).run end |
Instance Method Details
#run ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/fyi.rb', line 23 def run start_stopwatch status, stdout, stderr = systemu @command stop_stopwatch status.exitstatus.to_i == 0 ? run_succeeded(stdout) : run_failed(stdout, stderr) rescue Object => e run_failed('', e.to_s) end |