Created
September 6, 2008 20:35
-
-
Save aiwilliams/9194 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require 'rubygems' | |
gem 'rspec' | |
gem 'plugit' | |
require 'spec' | |
require 'plugit' | |
$LOAD_PATH << File.expand_path("#{File.dirname(__FILE__)}/../lib") | |
$LOAD_PATH << File.expand_path(File.dirname(__FILE__)) | |
RAILS_ROOT = File.expand_path("#{File.dirname(__FILE__)}/..") | |
PLUGIT_ENVIRONMENTS_PATH = File.dirname(__FILE__) + '/environments' | |
Plugit.describe do |app_goodies| | |
app_goodies.environments_root_path = PLUGIT_ENVIRONMENTS_PATH | |
app_goodies.environment :default, 'Released version of Rails' do |env| | |
env.library :rails, :export => "git clone git://github.com/rails/rails.git" do |rails| | |
rails.after_update { `git co v2.1.0_RC1` } | |
rails.load_paths = %w{/activesupport/lib /actionpack/lib} | |
rails.requires = %w{active_support action_controller action_view} | |
end | |
end | |
end | |
require 'fileutils' | |
FileUtils.touch("#{PLUGIT_ENVIRONMENTS_PATH}/test.log") | |
require 'logger' | |
RAILS_DEFAULT_LOGGER = Logger.new("#{PLUGIT_ENVIRONMENTS_PATH}/test.log") | |
RAILS_DEFAULT_LOGGER.level = Logger::DEBUG | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment