Sha256: 959237d3eae66aec8a880f65036851ae1bd9e97c998a7b63053e55fa1fc20db1

Contents?: true

Size: 535 Bytes

Versions: 8

Compression:

Stored size: 535 Bytes

Contents

require "rails/generators"


class KennyDialogginsGenerator < Rails::Generators::Base

  # This call establishes the path to the templates directory.
  #
  def self.source_root 
    File.join(File.dirname(__FILE__), "templates")
  end


  # This method copies stylesheet and javascript files to the 
  # corresponding public directories.
  #
  def generate_assets
    copy_file "kenny_dialoggins.css", "public/stylesheets/kenny_dialoggins.css"
    copy_file "kenny_dialoggins.js",  "public/javascripts/kenny_dialoggins.js"
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kenny_dialoggins-1.0.8 lib/generators/kenny_dialoggins/kenny_dialoggins_generator.rb
kenny_dialoggins-1.0.7 lib/generators/kenny_dialoggins/kenny_dialoggins_generator.rb
kenny_dialoggins-1.0.6 lib/generators/kenny_dialoggins/kenny_dialoggins_generator.rb
kenny_dialoggins-1.0.5 lib/generators/kenny_dialoggins/kenny_dialoggins_generator.rb
kenny_dialoggins-1.0.4 lib/generators/kenny_dialoggins/kenny_dialoggins_generator.rb
kenny_dialoggins-1.0.3 lib/generators/kenny_dialoggins/kenny_dialoggins_generator.rb
kenny_dialoggins-1.0.0 lib/generators/kenny_dialoggins/kenny_dialoggins_generator.rb
kenny_dialoggins-0.2.3 lib/generators/kenny_dialoggins/kenny_dialoggins_generator.rb