Sha256: ce649aec7b361bdaa1297f75f1dae4a05e55de95491fae0e765adaf2d707ab1a

Contents?: true

Size: 1.19 KB

Versions: 22

Compression:

Stored size: 1.19 KB

Contents

class DjatokaGenerator < Rails::Generator::Base
  def initialize(*runtime_args)
    super
  end

  def manifest
    record do |m|
      m.template 'OpenURL.js', 'public/javascripts/OpenURL.js'
      m.template 'OpenLayers.js', 'public/javascripts/OpenLayers.js'
      m.template 'djatoka.js', 'public/javascripts/djatoka.js'
      m.template 'djatoka-initializer.rb', 'config/initializers/djatoka.rb'

      m.directory 'public/javascripts/img'
      m.template 'east-mini.png',       'public/javascripts/img/east-mini.png'
      m.template 'north-mini.png',      'public/javascripts/img/north-mini.png'
      m.template 'south-mini.png',      'public/javascripts/img/south-mini.png'
      m.template 'west-mini.png',       'public/javascripts/img/west-mini.png'
      m.template 'zoom-minus-mini.png', 'public/javascripts/img/zoom-minus-mini.png'
      m.template 'zoom-world-mini.png', 'public/javascripts/img/zoom-world-mini.png'
      m.template 'zoom-plus-mini.png',  'public/javascripts/img/zoom-plus-mini.png'
      m.template 'blank.gif',           'public/javascripts/img/blank.gif'
    end
  end

  protected

  def banner
    %{Usage: #{$0} #{spec.name}\nCopies OpenURL.js public/javascripts/}
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
djatoka-0.4.1 generators/djatoka/djatoka_generator.rb
djatoka-0.4.0 generators/djatoka/djatoka_generator.rb
djatoka-0.3.2 generators/djatoka/djatoka_generator.rb
djatoka-0.3.1 generators/djatoka/djatoka_generator.rb
djatoka-0.3.0 generators/djatoka/djatoka_generator.rb
djatoka-0.2.4 generators/djatoka/djatoka_generator.rb
djatoka-0.2.3 generators/djatoka/djatoka_generator.rb
djatoka-0.2.2 generators/djatoka/djatoka_generator.rb
djatoka-0.2.1 generators/djatoka/djatoka_generator.rb
djatoka-0.2.0 generators/djatoka/djatoka_generator.rb
djatoka-0.1.0 generators/djatoka/djatoka_generator.rb
djatoka-0.0.12 generators/djatoka/djatoka_generator.rb
djatoka-0.0.11 generators/djatoka/djatoka_generator.rb
djatoka-0.0.10 generators/djatoka/djatoka_generator.rb
djatoka-0.0.9 generators/djatoka/djatoka_generator.rb
djatoka-0.0.8 generators/djatoka/djatoka_generator.rb
djatoka-0.0.7 generators/djatoka/djatoka_generator.rb
djatoka-0.0.6 generators/djatoka/djatoka_generator.rb
djatoka-0.0.5 generators/djatoka/djatoka_generator.rb
djatoka-0.0.4 generators/djatoka/djatoka_generator.rb