Sha256: 82d8df6a79bb972f81dbb78ee196143a22fde68feac08adb1edf607d848b6621

Contents?: true

Size: 562 Bytes

Versions: 11

Compression:

Stored size: 562 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 :contents do
          desc "Sync required files from muck contents."
          task :sync do
            path = File.join(File.dirname(__FILE__), *%w[.. ..])
            system "rsync -ruv #{path}/db ."
            system "rsync -ruv #{path}/public ."
          end
        end
      end

    end
  end
end
MuckContents::Tasks.new

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
muck-contents-0.1.11 lib/muck_contents/tasks.rb
muck-contents-0.1.10 lib/muck_contents/tasks.rb
muck-contents-0.1.9 lib/muck_contents/tasks.rb
muck-contents-0.1.8 lib/muck_contents/tasks.rb
muck-contents-0.1.7 lib/muck_contents/tasks.rb
muck-contents-0.1.6 lib/muck_contents/tasks.rb
muck-contents-0.1.5 lib/muck_contents/tasks.rb
muck-contents-0.1.4 lib/muck_contents/tasks.rb
muck-contents-0.1.1 lib/muck_contents/tasks.rb
muck-contents-0.1.2 lib/muck_contents/tasks.rb
muck-contents-0.1.3 lib/muck_contents/tasks.rb