Sha256: 2f73bc8a0a37b79bcc000c4b8e48f847d2c43c711d6d2fbb459229045b8b617b
Contents?: true
Size: 790 Bytes
Versions: 5
Compression:
Stored size: 790 Bytes
Contents
require 'thor/group' module Baldwin class Installer < Thor::Group include Thor::Actions def ignore_dummy_rails_apps append_to_file '.gitignore', <<-EOS spec/rails/rails-* EOS end def create_appraisals_file create_file 'Appraisals', <<-EOS # add your rails configurations to test against here, like: appraise 'rails-3.1.0' do gem 'rails', '3.1.0' end # see https://github.com/thoughtbot/appraisal for more info EOS end def add_baldwin_setup_to_spec_helper create_file 'spec/spec_helper.rb', <<-EOS require 'baldwin/setup' require 'rspec/rails' EOS end def copy_example_rails_template copy_file 'rails_template.rb', 'spec/rails/rails_template.rb' end def self.source_root File.dirname __FILE__ end end end
Version data entries
5 entries across 5 versions & 1 rubygems