Sha256: 9a5402a66e4060e11cd70456db40949d50398986d332c985178358b0b6d94449

Contents?: true

Size: 328 Bytes

Versions: 11

Compression:

Stored size: 328 Bytes

Contents

require 'rails/generators'
module Shoppe
  class SetupGenerator < Rails::Generators::Base
    
    def create_route
      route 'mount Shoppe::Engine => "/shoppe"'
    end
    
    def create_config_file
      create_file "config/shoppe.yml", File.read(File.join(Shoppe.root, 'config', 'shoppe.example.yml'))
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shoppe-0.0.15 lib/shoppe/setup_generator.rb
shoppe-0.0.14 lib/shoppe/setup_generator.rb
shoppe-0.0.13 lib/shoppe/setup_generator.rb
shoppe-0.0.12 lib/shoppe/setup_generator.rb
shoppe-0.0.11 lib/shoppe/setup_generator.rb
shoppe-0.0.10 lib/shoppe/setup_generator.rb
shoppe-0.0.9 lib/shoppe/setup_generator.rb
shoppe-0.0.8 lib/shoppe/setup_generator.rb
shoppe-0.0.7 lib/shoppe/setup_generator.rb
shoppe-0.0.6 lib/shoppe/setup_generator.rb
shoppe-0.0.5 lib/shoppe/setup_generator.rb