Sha256: e07da42d6806818c0e20cf9c2d790941280ffabdcea34ba897228fb770650640
Contents?: true
Size: 484 Bytes
Versions: 2
Compression:
Stored size: 484 Bytes
Contents
module Travis class Cli module Helper protected def run(cmd, options = {}) cmd = cmd.strip puts "$ #{options[:echo] || cmd}" unless options[:echo].is_a?(FalseClass) exit unless system(cmd) end def say(message) shell.say(message, :green) end def error(message) message = shell.set_color(message, :red) shell.error(message) exit 1 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
travis-cli-0.0.2 | lib/travis/cli/helper.rb |
travis-cli-0.0.1 | lib/travis/cli/helper.rb |