module Herkko

Main module of Herkko deployment tool.

travis login –pro travis history -l1 -bmaster

Constants

VERSION

Public Class Methods

info(text) click to toggle source
# File lib/herkko.rb, line 8
def self.info(text)
  Kernel.puts "-> " + text
end
puts(text) click to toggle source
# File lib/herkko.rb, line 12
def self.puts(text)
  Kernel.puts text
end
run(*command) click to toggle source
# 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) click to toggle source
# 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