Sha256: f935be94191a35becda917ac308daf945d9d7034a419bed60a5b91395a87e675
Contents?: true
Size: 668 Bytes
Versions: 16
Compression:
Stored size: 668 Bytes
Contents
Execute.define_task do desc "console [environment]", "run rhoconnect console" def console(environment=nil) if RedisRunner.running? application_file = ruby19? ? './application' : 'application' #load development environment by default ENV['RACK_ENV'] = environment || 'development' system "irb -rubygems -r #{File.join(File.dirname(__FILE__),'console_helper')} " + "-r #{File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'rhoconnect') } " + "-r #{application_file}" else puts "Redis is not running. Please start it by running 'rhoconnect redis-start' command." end #if end #console end #do
Version data entries
16 entries across 16 versions & 1 rubygems