Sha256: a136f393850a505587bc5966034fee48af9b337532ee1c46ac13c913da81fd83
Contents?: true
Size: 1019 Bytes
Versions: 7
Compression:
Stored size: 1019 Bytes
Contents
module Picky # Rake tasks for Picky clients. # module Tasks # Copies the latest javascripts into the default javascript folder. # # Example: # # Use as follows in your Rakefile. # # # Picky::Tasks::Javascripts.new # Copies the files into the javascripts folder (by default). # Picky::Tasks::Javascripts.new('public/javascripts') # Copies the files into the public/javascripts folder. # class Javascripts define_method :initialize do |target = 'javascripts'| desc "Copy the latest client javascripts to '#{target}' (Give target dir to Picky::Tasks::Javascripts.new to change)." task :javascripts do target_dir = ::File.expand_path target, Dir.pwd source_dir = ::File.expand_path '../../../../javascripts/*.min.js', __FILE__ puts "Copying javascript files from picky-client gem to target dir #{target_dir}" `cp -i #{source_dir} #{target_dir}` end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems