Class: Ropenlayer::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ropenlayer/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#installObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/ropenlayer/install/install_generator.rb', line 7

def install
    copy_file  "config/initializers/ropenlayer.rb"
    
    get        "http://openlayers.org/api/OpenLayers.js", "public/javascripts/OpenLayers.js"
    copy_file  "public/stylesheets/ropenlayer.css"
    directory  "public/images/ropenlayer"

    readme "../INSTALL"
    
end