Sha256: cd5a6aec7a737daf05c44ec2084486a621f67536aebfac2a66a5af03f3f2d4c2
Contents?: true
Size: 560 Bytes
Versions: 19
Compression:
Stored size: 560 Bytes
Contents
class DeprecGenerator < 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} --apply-to /path/to/app --name ApplicationName --domain DomainName" end end
Version data entries
19 entries across 19 versions & 1 rubygems