Sha256: 2238ad2839a7ca658fd498c24b86222c021368046a68cbd48a793a1d0530d1dc

Contents?: true

Size: 573 Bytes

Versions: 2

Compression:

Stored size: 573 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/cli'

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

logger_level = Logger::WARN

if ENV['VERBOSE'] == 'true'
  logger_level = Logger::INFO
end

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

$logger.level = logger_level

Percheron::CLI::MainCommand.run

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
percheron-0.4.0 bin/percheron
percheron-0.3.2 bin/percheron