Sha256: 8ac93154692aa0acbcd6d756d7fcc51f784de60d5f7af92a78bc815080834837

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

module Picky
  module Tasks
    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

1 entries across 1 versions & 1 rubygems

Version Path
picky-client-2.0.0.pre1 lib/picky-client/tasks/javascripts.rb