Sha256: 87183905dd9983d8868c390483ceb5832deca5eb0d9c64bc7db2fd486229a59d
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
module Mmmultiworks module Generators class RailsLoader def self.load!(options) require "#{options[:apply_to]}/config/environment" require "rails_generator" require "rails_generator/scripts/generate" Rails::Generator::Base.sources << Rails::Generator::PathSource.new( :mmmultiworks, File.dirname(__FILE__)) args = ["mmmultiworks"] args << (options[:application] || "Application") args << (options[:domain] || "my.mmmultiworks.com") Rails::Generator::Scripts::Generate.new.run(args) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mmmultiworks-0.1.0 | lib/mmmultiworks/generators/loader.rb |
mmmultiworks-0.2.0 | lib/mmmultiworks/generators/loader.rb |