Sha256: 388b8d938bf1659d63078dec609e14a2acfc65c2eb45f33cb0db6167de95847c
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
require 'optparse' require 'yaml' require 'highline/import' require 'hanzo/base' require 'hanzo/cli' require 'hanzo/heroku' require 'hanzo/version' module Hanzo def self.run(command) print(command, :green) `#{command}` end def self.print(text, *colors) colors = colors.map { |c| HighLine.const_get(c.to_s.upcase) } HighLine.say HighLine.color(" #{text}", *colors) end def self.title(text) HighLine.say HighLine.color("-----> #{text}", :blue) end def self.agree(question) HighLine.agree " #{question} " end def self.ask(question, &blk) HighLine.ask "-----> #{question} ", &blk end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hanzo-0.2.2 | lib/hanzo.rb |
hanzo-0.2.1 | lib/hanzo.rb |
hanzo-0.2 | lib/hanzo.rb |