Sha256: 25750b268d4a9c784c36934d9a0b2ffca18c97038a9ba10b8f24fcc93486d9a1

Contents?: true

Size: 663 Bytes

Versions: 9

Compression:

Stored size: 663 Bytes

Contents

module Gmaps4rails
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)

      desc 'Creates a Gmaps4rails initializer and copies the assets to the public folder.'

      def copy_locale
        copy_file '../../../public/javascripts/gmaps4rails.js', 'public/javascripts/gmaps4rails.js'
        copy_file '../../../public/stylesheets/gmaps4rails.css', 'public/stylesheets/gmaps4rails.css'
        copy_file '../../../public/images/marker.png', 'public/images/marker.png'
      end

      def show_readme
        readme 'README' if behavior == :invoke
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gmaps4rails-0.10.0 lib/generators/gmaps4rails/install_generator.rb
gmaps4rails-0.10.0.pre1 lib/generators/gmaps4rails/install_generator.rb
gmaps4rails-0.9.1 lib/gmaps4rails/generators/gmaps4rails/install_generator.rb
gmaps4rails-0.9.0 lib/generators/gmaps4rails/install_generator.rb
gmaps4rails-0.8.8 lib/generators/gmaps4rails/install_generator.rb
gmaps4rails-0.8.7 lib/generators/gmaps4rails/install_generator.rb
gmaps4rails-0.8.6 lib/generators/gmaps4rails/install_generator.rb
gmaps4rails-0.8.5 lib/generators/gmaps4rails/install_generator.rb
gmaps4rails-0.8.4 lib/generators/gmaps4rails/install_generator.rb