Sha256: 601da93a7da3431502e6cbb0824cacf3dd0c929aed879d6d67f9fb6e12de7aca

Contents?: true

Size: 506 Bytes

Versions: 17

Compression:

Stored size: 506 Bytes

Contents

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
muck-friends-0.1.17 lib/muck_friends/tasks.rb
muck-friends-0.1.16 lib/muck_friends/tasks.rb
muck-friends-0.1.15 lib/muck_friends/tasks.rb
muck-friends-0.1.14 lib/muck_friends/tasks.rb
muck-friends-0.1.13 lib/muck_friends/tasks.rb
muck-friends-0.1.12 lib/muck_friends/tasks.rb
muck-friends-0.1.11 lib/muck_friends/tasks.rb
muck-friends-0.1.10 lib/muck_friends/tasks.rb
muck-friends-0.1.5 lib/muck_friends/tasks.rb
muck-friends-0.1.6 lib/muck_friends/tasks.rb
muck-friends-0.1.7 lib/muck_friends/tasks.rb
muck-friends-0.1.8 lib/muck_friends/tasks.rb
muck-friends-0.1.9 lib/muck_friends/tasks.rb
muck-friends-0.1.1 lib/muck_friends/tasks.rb
muck-friends-0.1.2 lib/muck_friends/tasks.rb
muck-friends-0.1.3 lib/muck_friends/tasks.rb
muck-friends-0.1.4 lib/muck_friends/tasks.rb