Sha256: c2af639939c1532686872d7bc3d51b754be02d701bd03b608ce3069fef149a57
Contents?: true
Size: 473 Bytes
Versions: 5
Compression:
Stored size: 473 Bytes
Contents
# FIXME: Provisional::RailsApplication#initialize doesn't depend on instance state (Utility Function) require 'rails/version' require 'rails_generator' require 'rails_generator/scripts/generate' module Provisional class RailsApplication def initialize(path, template_path) Dir.chdir(path) Rails::Generator::Base.use_application_sources! Rails::Generator::Scripts::Generate.new.run(['.', '-m', template_path], :generator => 'app') end end end
Version data entries
5 entries across 5 versions & 1 rubygems