Sha256: 69d071d436cc282eb7875507e12090c1bd165ac74077fbf9b3ede8c84915e2f9

Contents?: true

Size: 677 Bytes

Versions: 1

Compression:

Stored size: 677 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)
    Bundler.with_clean_env { `#{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

1 entries across 1 versions & 1 rubygems

Version Path
hanzo-0.2.3 lib/hanzo.rb