lib/picky-client/tasks/javascripts.rb in picky-client-2.0.0.pre1 vs lib/picky-client/tasks/javascripts.rb in picky-client-2.0.0.pre2
- old
+ new
@@ -1,6 +1,18 @@
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
\ No newline at end of file