Sha256: bd59d9540a327112cb0d5a9ea36f5a1fb5e6e40362381d94e64b758e09be5866
Contents?: true
Size: 538 Bytes
Versions: 12
Compression:
Stored size: 538 Bytes
Contents
class RailsmachineGenerator < 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 # Override with your own usage banner. def banner "Usage: #{$0} railsmachine ApplicationName DomainName" end end
Version data entries
12 entries across 12 versions & 2 rubygems