Sha256: 2a52eb29228adae3fdbf58a11a157f65148b84905a7ea0b81f00ddece021dcea
Contents?: true
Size: 1.46 KB
Versions: 2
Compression:
Stored size: 1.46 KB
Contents
module RailsChat module Generators class InstallGenerator < Rails::Generators::Base def self.source_root File.dirname(__FILE__) + "/templates" end def copy_files template "rails_chat.yml", "config/rails_chat.yml" if ::Rails.version < "3.1" copy_file "../../../../app/assets/javascripts/rails_chat.js", "public/javascripts/rails_chat.js" copy_file "../../../../app/assets/javascripts/emoticons_defination.js", "public/javascripts/emoticons_defination.js" copy_file "../../../../app/assets/javascripts/emoticons.js", "public/javascripts/emoticons.js" copy_file "../../../../app/assets/stylesheets/emoticons.css", "public/stylesheets/emoticons.css" copy_file "../../../../app/assets/images/emoticons.png", "public/images/emoticons.png" else copy_file "../../../../app/assets/javascripts/rails_chat.js", "app/assets/javascripts/rails_chat.js" copy_file "../../../../app/assets/javascripts/emoticons_defination.js", "app/assets/javascripts/emoticons_defination.js" copy_file "../../../../app/assets/javascripts/emoticons.js", "app/assets/javascripts/emoticons.js" copy_file "../../../../app/assets/stylesheets/emoticons.css", "app/assets/stylesheets/emoticons.css" copy_file "../../../../app/assets/images/emoticons.png", "app/assets/images/emoticons.png" end copy_file "rails_chat.ru", "rails_chat.ru" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_chat-0.0.2 | lib/generators/rails_chat/install_generator.rb |
rails_chat-0.0.1 | lib/generators/rails_chat/install_generator.rb |