Sha256: 330bf82954a641f5fe40c9875413dfdf27d1b2e35fb249edad17b92273b8bec8

Contents?: true

Size: 346 Bytes

Versions: 31

Compression:

Stored size: 346 Bytes

Contents

ARGV << '--help' if ARGV.empty?

aliases = {
  "g"  => "generate",
  "d"  => "destroy",
  "c"  => "console",
  "s"  => "server",
  "db" => "dbconsole",
  "r"  => "runner",
  "t"  => "test"
}

command = ARGV.shift
command = aliases[command] || command

require 'rails/commands/commands_tasks'

Rails::CommandsTasks.new(ARGV).run_command!(command)

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
railties-5.0.7.2 lib/rails/commands.rb
railties-5.0.7.1 lib/rails/commands.rb
railties-5.0.7 lib/rails/commands.rb
railties-5.0.6 lib/rails/commands.rb
railties-5.0.6.rc1 lib/rails/commands.rb
railties-5.0.5 lib/rails/commands.rb
railties-5.0.5.rc2 lib/rails/commands.rb
railties-5.0.5.rc1 lib/rails/commands.rb
railties-5.0.4 lib/rails/commands.rb
railties-5.0.4.rc1 lib/rails/commands.rb
railties-5.0.3 lib/rails/commands.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/railties-5.0.2/lib/rails/commands.rb
railties-5.0.2 lib/rails/commands.rb
railties-5.0.2.rc1 lib/rails/commands.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/commands.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/commands.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/commands.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/commands.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/commands.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/commands.rb