Sha256: b734cf40952bb23cc3a2df020d3a0f573fa564995eb84a2cf49d58ac08b22e5b

Contents?: true

Size: 732 Bytes

Versions: 4

Compression:

Stored size: 732 Bytes

Contents

#!/usr/bin/env ruby

lib = File.expand_path('../../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'logger'
require 'percheron'
require 'percheron/commands'

$metastore = Metastore::Cabinet.new(File.join(ENV['HOME'], '.percheron', 'metastore.yaml'))
$logger = Logger.new(STDOUT)

logger_level = Logger::INFO

if ENV['QUIET'] == 'true'
  logger_level = Logger::WARN
end

if ENV['DEBUG'] == 'true' || ENV['DOCKER_DEBUG'] == 'true'
  require 'pry-byebug'
  require 'awesome_print'
  logger_level = Logger::DEBUG

  Docker.logger = $logger if ENV['DOCKER_DEBUG'] == 'true'
end

$logger.level = logger_level

begin
  Percheron::Commands::Main.run
rescue => e
  puts Percheron::OhDear.new(e).generate
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
percheron-0.6.4 bin/percheron
percheron-0.6.3 bin/percheron
percheron-0.6.2 bin/percheron
percheron-0.6.1 bin/percheron