Sha256: c3df973ac24f1d7645bed2c5d1f1c87fa6968cb70e46b359290a62a6ed6c77db

Contents?: true

Size: 631 Bytes

Versions: 9

Compression:

Stored size: 631 Bytes

Contents

require 'rake'
require 'rake/tasklib'
require 'fileutils'

module MuckContents
  class Tasks < ::Rake::TaskLib
    def initialize
      define
    end
  
    private
    def define
      
      namespace :muck do
        namespace :sync do
          desc "Sync required files from muck contents."
          task :contents do
            path = File.join(File.dirname(__FILE__), *%w[.. ..])
            system "rsync -ruv #{path}/db ."
            system "rsync -ruv #{path}/public ."
            system "rsync -ruv #{path}/config/initializers ./config"
          end
        end
      end

    end
  end
end
MuckContents::Tasks.new

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
muck-contents-0.2.27 lib/muck_contents/tasks.rb
muck-contents-0.2.26 lib/muck_contents/tasks.rb
muck-contents-0.2.25 lib/muck_contents/tasks.rb
muck-contents-0.2.24 lib/muck_contents/tasks.rb
muck-contents-0.2.23 lib/muck_contents/tasks.rb
muck-contents-0.2.22 lib/muck_contents/tasks.rb
muck-contents-0.2.21 lib/muck_contents/tasks.rb
muck-contents-0.2.20 lib/muck_contents/tasks.rb
muck-contents-0.2.18 lib/muck_contents/tasks.rb