aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/engine
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-09-12 21:59:26 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2016-09-25 21:31:45 +0200
commit03c982fa3417fc49a380eeb88fdd26fdd4bae46b (patch)
treebf60ebe8bd609876bc381893d20b450b3a023917 /railties/lib/rails/engine
parent4e106ee08b36c2047a6af3829f3497459590c98a (diff)
downloadrails-03c982fa3417fc49a380eeb88fdd26fdd4bae46b.tar.gz
rails-03c982fa3417fc49a380eeb88fdd26fdd4bae46b.tar.bz2
rails-03c982fa3417fc49a380eeb88fdd26fdd4bae46b.zip
Remove the old command files.
Wash out your old! These adhoc scripts are replaced by the new commands.
Diffstat (limited to 'railties/lib/rails/engine')
-rw-r--r--railties/lib/rails/engine/commands_tasks.rb62
1 files changed, 0 insertions, 62 deletions
diff --git a/railties/lib/rails/engine/commands_tasks.rb b/railties/lib/rails/engine/commands_tasks.rb
deleted file mode 100644
index 65dd274793..0000000000
--- a/railties/lib/rails/engine/commands_tasks.rb
+++ /dev/null
@@ -1,62 +0,0 @@
-require "rails/commands/rake_proxy"
-require "rails/commands/common_commands_tasks"
-require "active_support/core_ext/string/strip"
-
-module Rails
- class Engine
- class CommandsTasks # :nodoc:
- include Rails::RakeProxy
- include Rails::CommonCommandsTasks
-
- attr_reader :argv
-
- def initialize(argv)
- @argv = argv
- end
-
- private
-
- def commands
- formatted_rake_tasks
- end
-
- def command_whitelist
- %w(generate destroy version help test)
- end
-
- def help_message
- <<-EOT.strip_heredoc
- Usage: bin/rails COMMAND [ARGS]
-
- The common Rails commands available for engines are:
- generate Generate new code (short-cut alias: "g")
- destroy Undo code generated with "generate" (short-cut alias: "d")
- test Run tests (short-cut alias: "t")
-
- All commands can be run with -h for more information.
-
- If you want to run any commands that need to be run in context
- of the application, like `rails server` or `rails console`,
- you should do it from application's directory (typically test/dummy).
-
- In addition to those commands, there are:
- EOT
- end
-
- def require_application_and_environment!
- require ENGINE_PATH
- end
-
- def load_tasks
- Rake.application.init("rails")
- Rake.application.load_rakefile
- end
-
- def load_generators
- engine = ::Rails::Engine.find(ENGINE_ROOT)
- Rails::Generators.namespace = engine.railtie_namespace
- engine.load_generators
- end
- end
- end
-end