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

Version Path
rhoconnect-3.3.6 commands/commands/rhoconnect/console.rb
rhoconnect-3.3.5 commands/commands/rhoconnect/console.rb
rhoconnect-3.3.4 commands/commands/rhoconnect/console.rb
rhoconnect-3.3.3 commands/commands/rhoconnect/console.rb
rhoconnect-3.3.2 commands/commands/rhoconnect/console.rb
rhoconnect-3.3.1 commands/commands/rhoconnect/console.rb
rhoconnect-3.3.1.beta4 commands/commands/rhoconnect/console.rb
rhoconnect-3.3.1.beta3 commands/commands/rhoconnect/console.rb
rhoconnect-3.3.1.beta2 commands/commands/rhoconnect/console.rb
rhoconnect-3.2.1 commands/commands/rhoconnect/console.rb
rhoconnect-3.2.0 commands/commands/rhoconnect/console.rb
rhoconnect-3.2.0.beta5 commands/commands/rhoconnect/console.rb
rhoconnect-3.2.0.beta4 commands/commands/rhoconnect/console.rb
rhoconnect-3.2.0.beta3 commands/commands/rhoconnect/console.rb
rhoconnect-3.2.0.beta2 commands/commands/rhoconnect/console.rb
rhoconnect-3.2.0.beta1 commands/commands/rhoconnect/console.rb