Sha256: 67b86ac1460ea31bb3c1714b3ea2edc0bd2491182be88ff4fc496f557853bf65
Contents?: true
Size: 761 Bytes
Versions: 2
Compression:
Stored size: 761 Bytes
Contents
require "rails/generators" module JqueryCheats class AssetPipelineGenerator < Rails::Generators::Base desc "A simple way to get the asset pipeline in your application" def generate_assetPipeline source_root = File.expand_path("../../../../app/assets/assetpipeline/",__FILE__) # need to make a directory to hold them if(!File.exists?('app/assets/javascripts')) FileUtils.mkdir_p 'app/assets/javascripts' end if(!File.exists?('app/assets/stylesheets')) FileUtils.mkdir_p 'app/assets/stylesheets' end FileUtils.cp source_root+"/assetpipeline.js",'app/assets/javascripts/application.js' FileUtils.cp source_root+"/assetpipeline.css",'app/assets/stylesheets/application.css' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jquery_cheats-5.2.2 | lib/generators/jquery_cheats/asset_pipeline_generator.rb |
jquery_cheats-5.2.1 | lib/generators/jquery_cheats/asset_pipeline_generator.rb |