Sha256: afd699fcf58d8eb0a9640fe53ccd0b3ffc5281f1e35ce6d3e2153ccf14c17578
Contents?: true
Size: 875 Bytes
Versions: 14
Compression:
Stored size: 875 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib])) require 'eye' # Local version of eye # which looking for Eyefile # like foreman loop do if ARGV[0] == '--eyefile' ARGV.shift ENV['EYE_FILE'] = File.expand_path(ARGV.shift.to_s) elsif ARGV[0] == '--eyehome' ARGV.shift ENV['EYE_HOME'] = File.expand_path(ARGV.shift.to_s) else break end end if ENV['EYE_HOME'] && !File.directory?(File.expand_path(ENV['EYE_HOME'])) puts "\033[31mEYE_HOME is not directory (#{File.expand_path(ENV['EYE_HOME'])})\033[0m" exit 1 end unless Eye::Local.eyefile || ENV['EYE_HOME'] puts "\033[31mNot found Eyefile (in #{File.expand_path(ENV['EYE_HOME'] || '.')})\033[0m" exit 1 end unless ENV.key?('EYE_HOME') ENV['EYE_HOME'] = File.dirname(Eye::Local.eyefile) end Eye::Local.local_runner = true Eye::Cli.start
Version data entries
14 entries across 14 versions & 1 rubygems