forked from travis-ci/travis-core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a rails/script shim so that we can use $ rails generate migration
- Loading branch information
Sven Fuchs
committed
Mar 20, 2012
1 parent
2fe58a0
commit 3f23850
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# dummy application.rb file that is used in script/rails so we can use the | ||
# `rails generate migration` command | ||
|
||
require File.expand_path('../boot', __FILE__) | ||
|
||
require 'active_model/railtie' | ||
require 'active_record/railtie' | ||
require 'action_controller/railtie' | ||
require 'action_view/railtie' | ||
require 'action_mailer/railtie' | ||
|
||
Bundler.require | ||
require 'travis' | ||
|
||
module Travis::Core | ||
class Application < Rails::Application | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# dummy boot.rb file that is used in script/rails so we can use the | ||
# `rails generate migration` command | ||
|
||
require 'rubygems' | ||
ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__) | ||
require 'bundler' | ||
Bundler.setup | ||
|
||
$:.unshift File.expand_path('../../lib', __FILE__) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
|
||
APP_PATH = File.expand_path('../../config/application', __FILE__) | ||
require File.expand_path('../../config/boot', __FILE__) | ||
require 'rails/commands' |