Sha256: b97d07b89f42f88c9907bfc0daa3de2ac728807f0e399f809973e38d79a8117c

Contents?: true

Size: 631 Bytes

Versions: 19

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 :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 ."
            system "rsync -ruv #{path}/config/initializers ./config"
          end
        end
      end

    end
  end
end
MuckContents::Tasks.new

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
muck-contents-0.2.17 lib/muck_contents/tasks.rb
muck-contents-0.2.16 lib/muck_contents/tasks.rb
muck-contents-0.2.15 lib/muck_contents/tasks.rb
muck-contents-0.2.14 lib/muck_contents/tasks.rb
muck-contents-0.2.13 lib/muck_contents/tasks.rb
muck-contents-0.2.12 lib/muck_contents/tasks.rb
muck-contents-0.2.11 lib/muck_contents/tasks.rb
muck-contents-0.2.10 lib/muck_contents/tasks.rb
muck-contents-0.2.9 lib/muck_contents/tasks.rb
muck-contents-0.2.8 lib/muck_contents/tasks.rb
muck-contents-0.2.7 lib/muck_contents/tasks.rb
muck-contents-0.2.6 lib/muck_contents/tasks.rb
muck-contents-0.2.5 lib/muck_contents/tasks.rb
muck-contents-0.2.4 lib/muck_contents/tasks.rb
muck-contents-0.2.3 lib/muck_contents/tasks.rb
muck-contents-0.2.2 lib/muck_contents/tasks.rb
muck-contents-0.2.1 lib/muck_contents/tasks.rb
muck-contents-0.2.0 lib/muck_contents/tasks.rb
muck-contents-0.1.12 lib/muck_contents/tasks.rb