Module: Herkko
- Defined in:
- lib/herkko/travis.rb,
lib/herkko.rb,
lib/herkko/runner.rb,
lib/herkko/version.rb
Overview
travis login –pro travis history -l1 -bmaster
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.17"- @@debug =
false
Class Method Summary collapse
- .info(text) ⇒ Object
- .puts(text) ⇒ Object
- .run(*command) ⇒ Object
- .run_with_output(*command) ⇒ Object
Class Method Details
.info(text) ⇒ Object
7 8 9 |
# File 'lib/herkko.rb', line 7 def self.info(text) Kernel.puts "-> " + text end |
.puts(text) ⇒ Object
11 12 13 |
# File 'lib/herkko.rb', line 11 def self.puts(text) Kernel.puts text end |
.run(*command) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/herkko.rb', line 15 def self.run(*command) if @@debug Kernel.puts "--> #{command.join(" ")}" end Open3.capture3(*command) end |
.run_with_output(*command) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/herkko.rb', line 23 def self.run_with_output(*command) command = command.flatten.compact if @@debug Kernel.puts "--> #{command.join(" ")}" end Kernel.system(*command) end |