Sha256: 13d1e1c5e4a46376a86ff057e085cea4b8136e91e32b97384fd154de23bcd3f5
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
require 'pathname' require 'yaml' module Balancer module Core def root path = ENV['BALANCER_ROOT'] || '.' Pathname.new(path) end def profile ENV['BALANCER_PROFILE'] || 'default' end def settings Setting.new.data end def validate_in_project! unless File.exist?("#{root}/.balancer") puts "Could not find a .balancer folder in the current directory. It does not look like you are running this command within a balancer project. Please confirm that you are in a balancer project and try again.".colorize(:red) exit end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balancer-0.2.0 | lib/balancer/core.rb |