Sha256: 22adc4864b426e3784f29712a60307ad8551afb215b5c0e34d6a666d54db4a10

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

require 'rails/generators/base'

module BucketMaker
  module Generators
    # Installs the initializer
    #
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)

      desc "Creates a BucketMaker initializer"

      # Copies the initializer bucket_maker from the templates and pastes
      #
      def copy_initializer
        template "bucket_maker.rb", "config/initializers/bucket_maker.rb"
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bucket_maker-0.0.4 lib/generators/bucket_maker/install_generator.rb
bucket_maker-0.0.3 lib/generators/bucket_maker/install_generator.rb
bucket_maker-0.0.2 lib/generators/bucket_maker/install_generator.rb