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