Sha256: 0fcc5b8ae5f910e54b415edba026830f458ad0fb75a826d260720810de03f9e1

Contents?: true

Size: 405 Bytes

Versions: 4

Compression:

Stored size: 405 Bytes

Contents

module Ampere
  module Generators
    class ConfigGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)
    
      desc "Installs a skeleton Ampere config file for you."
    
      argument :prefix, :type => :string, :optional => true
    
      def create_config_file
        template 'ampere.yml', File.join('config', "ampere.yml")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ampere-1.2.3 lib/rails/generators/ampere/config/config_generator.rb
ampere-1.2.2 lib/rails/generators/ampere/config/config_generator.rb
ampere-1.2.1 lib/rails/generators/ampere/config/config_generator.rb
ampere-1.2.0 lib/rails/generators/ampere/config/config_generator.rb