Sha256: 57e6533bb7ebb3c5acda072f217ee944f48ee23e0d25277e8a4f63e6ccc91b60
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
class MmmultiworksGenerator < Rails::Generator::NamedBase attr_reader :application_name attr_reader :domain_name def initialize(runtime_args, runtime_options = {}) super @application_name = self.file_name @domain_name = @args[0] end def manifest record do |m| m.directory "config" m.template "deploy.rb", File.join("config", "deploy.rb") end end protected def banner "Usage: #{$0} mmmultiworks ApplicationName DomainName" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mmmultiworks-0.1.0 | lib/mmmultiworks/generators/mmmultiworks/mmmultiworks_generator.rb |
mmmultiworks-0.2.0 | lib/mmmultiworks/generators/mmmultiworks/mmmultiworks_generator.rb |