Sha256: 5456442460be7f22702b4666a2975ae19e2395b40dae9cc48eb74cf20169fc2a

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

require 'rails/generators'

module Puff
  module Generators
    class ConfigGenerator < ::Rails::Generators::Base
      desc "Creates a Puff configuration file at config/puff.yml"

      source_root File.expand_path('../templates', __FILE__)

      def create_config_file
        template 'puff.yml', File.join('config', "puff.yml")
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puff-0.3.1 lib/generators/puff/config_generator.rb
puff-0.3.0 lib/generators/puff/config_generator.rb