Sha256: b397bab554d85a23bfd8671e4dfd7610fcd2bb51b43e5107ab341e17392ed6cd

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

require 'rails/generators'

module Alberich
  class InstallGenerator < Rails::Generators::Base
    desc "Copy Alberich default files"
    source_root File.expand_path('../templates', __FILE__)

    def copy_config
      copy_file "alberich.rb", "config/initializers/alberich.rb"
    end
    def show_readme
      readme 'README' if behavior == :invoke
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alberich-0.2.0 lib/generators/alberich/install_generator.rb