Sha256: 86f4d478eddde71762d7138c33c69d7e062ff10b951ac38e1011a9be3a6aa664

Contents?: true

Size: 868 Bytes

Versions: 2

Compression:

Stored size: 868 Bytes

Contents

class RestboxGenerator < Rails::Generator::Base
  
  def initialize(*runtime_args)
    super
  end
  
  def manifest
    record do |m|
      m.directory File.join('public', 'stylesheets')
      m.template 'stylesheets/restbox.css',   File.join('public', 'stylesheets', 'restbox.css')
      
      m.directory File.join('public', 'javascripts')
      m.template 'javascripts/restbox.js',   File.join('public', 'javascripts', 'restbox.js')
      
      m.directory File.join('public', 'images')
      m.template 'images/loader.gif',   File.join('public', 'images', 'restbox', 'loader.gif')
      m.template 'images/restbox_close.png',   File.join('public', 'images', 'restbox' , 'restbox_close.png')
    end
  end
    
  protected
  
  def banner
    %{Usage: #{$0} #{spec.name}\nCopies restbox.css, restbox.js, and images to it's proper location to public}
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restbox-0.2.0 generators/restbox/restbox_generator.rb
restbox-0.1.2 generators/restbox/restbox_generator.rb