class Ikaros::CLI
Public Instance Methods
start()
click to toggle source
# File lib/ikaros/cli.rb, line 9 def start if options.debug? Logger.log_level = ::Logger::DEBUG end check_requirement config_file = Config.new '.ikaros.yml' Runner.new(config_file).run end
Private Instance Methods
check_requirement()
click to toggle source
# File lib/ikaros/cli.rb, line 20 def check_requirement raise Error::ConfigMissing.new unless have_config_file? raise Error::CacheBundleMissing.new unless have_bundle_cache? end
have_bundle_cache?()
click to toggle source
# File lib/ikaros/cli.rb, line 29 def have_bundle_cache? ENV['CACHE_BUNDLE_PATH'] end
have_config_file?()
click to toggle source
# File lib/ikaros/cli.rb, line 25 def have_config_file? ::File.exist?('.ikaros.yml') end