Sha256: d31f3bff0f7fe2d14eb2aba063a220e82a79fef335e15af0a4ed62b22bce7ea9

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

require 'rails/generators'

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tim-0.3.0 lib/generators/tim/install_generator.rb
tim-0.2.0 lib/generators/tim/install_generator.rb
tim-0.1.2 lib/generators/tim/install_generator.rb
tim-0.1.1 lib/generators/tim/install_generator.rb
tim-0.0.1 lib/generators/tim/install_generator.rb