Sha256: 7368eb80c262d30acf9c1f24326b5de296dde1f9a0702ab9fbbb9f5b7d5e9374

Contents?: true

Size: 265 Bytes

Versions: 33

Compression:

Stored size: 265 Bytes

Contents

require 'rails/engine/commands_tasks'

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

aliases = {
  "g" => "generate",
  "d" => "destroy",
  "t" => "test"
}

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

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

Version data entries

33 entries across 33 versions & 4 rubygems

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