1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

15 commits

Author SHA1 Message Date
Kasper Timm Hansen
6813edc7d9 Initial command structure. 2016-09-25 21:31:35 +02:00
Xavier Noria
69ab3eb57e applies new string literal convention in railties/lib
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:15:47 +02:00
Rafael Mendonça França
4b606d0713 💣 Fix another leftover 2015-05-27 21:59:00 -03:00
Ryan Bigg
f9640b0900 Remove redundant 'Rails' from Rails::AppRailsLoader constant 2015-05-21 16:50:41 +10:00
Arun Agrawal
4f66721a91 No need to require rbconfig as we are using Gem.ruby 2013-10-11 14:26:20 +02:00
schneems
ec8d8652f3 s/plugin_new/plugin
There are historical reasons that the `plugin` command was `plugin_new`, now those are no longer applicable, we should remove the naming edge case from the project. This PR is based off of comments from #11176

ATP Railties
2013-06-30 22:03:39 -04:00
Steve Klabnik
c5a9c02e01 Fix backwards compatibility with Rails 3 apps.
When we removed script/rails and introduced bin/rails, we accidentally
introduced a regression. If you install Rails 4 as a gem, then try to do
something in a Rails 3 application:

    $ rails g

This will throw the 'please type rails new foo' message rather than the
proper generator documentation message. This is because older apps don't
have bin/rails.

Therefore, we now *prefer* bin/rails, but still search for script/rails,
and exec the one we find.
2013-02-22 14:30:21 -05:00
Jeremy Kemper
009873aec8 Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn' 2013-01-06 21:41:36 -07:00
Philip Arndt
d6fd5821da Exit with non-zero to signal failure. 2011-01-29 16:51:40 +08:00
José Valim
f912a359aa Merge remote branch 'drogus/plugin_new'
Conflicts:
	railties/test/generators/app_generator_test.rb
2010-11-11 19:39:21 +01:00
zhengjia
8a6ac4fc26 Remove unused Configurable in Rails::Engine and Rails::Application. Remove unnecessary railties load path in cli [#5871 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-11 17:29:39 +01:00
Piotr Sarnacki
cfcea1d53a Added 'rails plugin new' generator which generates gem plugin skeleton.
This command is based on enginex gem by José Valim. It generates gem structure
and ads dummy application into test/dummy. This can be used to start developing
any kind of extension for rails 3.
2010-11-02 17:14:49 +01:00
Xavier Noria
df367adba1 adds a comment in cli.rb so that it is clear that exec_script_rails! performs an exec call 2010-08-27 23:27:29 +02:00
Chad Fowler
dcc758acb0 detect being inside a rails application even from a subdirectory
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2010-06-10 14:16:45 -04:00
Felipe Rodrigues
a64bfc3c8e moved rails binary to rails gem, so rubygems can find specific versions of rails [#4382 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
2010-04-12 19:56:38 -07:00
Renamed from railties/bin/rails (Browse further)