Sha256: f59019744e62b72dc8cc4168b81b218ec4abe6f2fd50a7fdb926fd7ca1da7ac5
Contents?: true
Size: 822 Bytes
Versions: 4
Compression:
Stored size: 822 Bytes
Contents
#!/usr/bin/env ruby if ENV.key?('COLLINS_DEBUG') && ENV['COLLINS_DEBUG'] then HTTP_DEBUG = true end if not ENV.key?('HOME') || ENV['HOME'].empty? then puts("No HOME environment found. Exiting") exit(2) end $:.unshift File.join File.dirname(__FILE__), *%w[.. lib] # Allows us to use a dev version of collins-client if needed $:.unshift File.join File.dirname(__FILE__), *%w[.. .. ruby collins-client lib] %w[collins_shell collins_shell/cli].each {|f| require f} begin CollinsShell::Cli.start rescue SystemExit => e rescue CollinsShell::ConfigurationError => e cli = CollinsShell::Cli.new cli.say_status("fatal", "your environment is not setup correctly", :red) cli.say_status("message", "#{e.message}") exit(1) rescue Exception => e cli = CollinsShell::Cli.new cli.print_error e exit(2) end exit(0)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
collins_shell-0.2.23 | bin/collins-shell |
collins_shell-0.2.22 | bin/collins-shell |
collins_shell-0.2.21 | bin/collins-shell |
collins_shell-0.2.20 | bin/collins-shell |