Sha256: 8ec772eeb8a3b41fdc8b72af87999205b9a621a2bcf699b786abbef7f35db07f
Contents?: true
Size: 1020 Bytes
Versions: 1
Compression:
Stored size: 1020 Bytes
Contents
#!/usr/bin/env ruby freeze = ARGV.any? { |option| %w(--freeze -f).include?(option) } app_path = ARGV.first require 'rubygems' gem 'rails', '>= 1.2.3' # find the path to RAILS rails_gem = Gem.cache.search('rails').last RAILS = rails_gem.full_gem_path require RAILS + '/lib/ruby_version_check' Signal.trap("INT") { puts; exit } require RAILS + '/lib/rails/version' if %w(--version -v).include? ARGV.first puts "Rails #{Rails::VERSION::STRING}" exit(0) end require RAILS + '/lib/rails_generator' require 'rails_generator/scripts/generate' Rails::Generator::Base.use_application_sources! path = File.dirname(__FILE__) + '/../' Rails::Generator::Base.sources << Rails::Generator::PathSource.new('', path) # execute the seamless generator Rails::Generator::Scripts::Generate.new.run(ARGV, {:generator => 'seamless', :source => path + 'seamless', :source_root => path + 'seamless', 'railspath'=>'../../rails-'+rails_gem.version.to_s}) Dir.chdir(app_path) { `rake rails:freeze:gems`; puts "froze" } if freeze
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seamless-1.0.0 | bin/seamless |