Sha256: 4d440ed12159737937de3e0e9eb10c48905f24858c3d1a15e3e2986a5a852897

Contents?: true

Size: 617 Bytes

Versions: 37

Compression:

Stored size: 617 Bytes

Contents

desc 'console [TARGET]', 'Open a Rails console locally or on a Capistrano deploy target'
long_desc <<-LONGDESC
Open a local Rails console: `geordi console`

Open a Rails console on `staging`: `geordi console staging`
LONGDESC


option :select_server, :default => false, :type => :boolean, :aliases => '-s'

def console(target = 'development', *args)
  require 'geordi/remote'

  if target == 'development'
    announce 'Opening a local Rails console'

    Util.system! Util.console_command(target)

  else
    announce 'Opening a Rails console on ' + target

    Geordi::Remote.new(target).console(options)
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
geordi-2.1.0 lib/geordi/commands/console.rb
geordi-2.0.0 lib/geordi/commands/console.rb
geordi-1.10.0 lib/geordi/commands/console.rb
geordi-1.9.1 lib/geordi/commands/console.rb
geordi-1.9.0 lib/geordi/commands/console.rb
geordi-1.8.0 lib/geordi/commands/console.rb
geordi-1.7.1 lib/geordi/commands/console.rb
geordi-1.7.0 lib/geordi/commands/console.rb
geordi-1.6.5 lib/geordi/commands/console.rb
geordi-1.6.4 lib/geordi/commands/console.rb
geordi-1.6.3 lib/geordi/commands/console.rb
geordi-1.6.2 lib/geordi/commands/console.rb
geordi-1.6.1 lib/geordi/commands/console.rb
geordi-1.6.0 lib/geordi/commands/console.rb
geordi-1.5.2 lib/geordi/commands/console.rb
geordi-1.5.1 lib/geordi/commands/console.rb
geordi-1.5.0 lib/geordi/commands/console.rb
geordi-1.4.3 lib/geordi/commands/console.rb
geordi-1.4.2 lib/geordi/commands/console.rb
geordi-1.4.1 lib/geordi/commands/console.rb