Sha256: e343857d3147d7c6b68cf36bbe86e9b950ffe092a7ee29a3a78466eec104922d
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
require 'rails/generators' class PorterGenerator < Rails::Generators::Base attr_accessor :app, :domain def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end def create_config_file @app = Dir.glob(Rails.root).to_s.split('/').last @domain = @app + (@app.include?('.') ? '' : '.com') template 'porter_config.yml', 'config/porter_config.yml' readme 'INSTALL' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
porter-1.0.1 | lib/generators/porter/porter_generator.rb |
porter-1.0.0 | lib/generators/porter/porter_generator.rb |