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