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

Version Path
railsmachine-railsmachine-1.0.3 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-railsmachine-1.0.4 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-railsmachine-1.0.5 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-1.0.6 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-0.1.1 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-0.1.0 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-0.1.2 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-1.0.4 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-1.0.5 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-1.0.1 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-1.0.0 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
railsmachine-1.0.3 lib/railsmachine/generators/railsmachine/railsmachine_generator.rb