Sha256: 6cf852cbeb735343ef4194b1cd80dea1b551089e1cc73815e69935d187d97413

Contents?: true

Size: 779 Bytes

Versions: 11

Compression:

Stored size: 779 Bytes

Contents

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

module MuckCommerce
  class Tasks < ::Rake::TaskLib
    def initialize
      define
    end

    private
    def define

      namespace :muck do

        namespace :sync do

          # namespace :db do
          # 
          #   desc "Populates the database with default values"
          #   task :populate => :environment do
          #     
          #   end
          # 
          # end

          desc "Sync files from muck commerce."
          task :commerce do
            path = File.join(File.dirname(__FILE__), *%w[.. ..])
            system "rsync -ruv #{path}/db ."
            #system "rsync -ruv #{path}/public ."
          end
          
        end

      end

    end
  end
end
MuckCommerce::Tasks.new

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
muck-commerce-0.2.8 lib/muck_commerce/tasks.rb
muck-commerce-0.2.7 lib/muck_commerce/tasks.rb
muck-commerce-0.2.6 lib/muck_commerce/tasks.rb
muck-commerce-0.2.5 lib/muck_commerce/tasks.rb
muck-commerce-0.2.4 lib/muck_commerce/tasks.rb
muck-commerce-0.2.3 lib/muck_commerce/tasks.rb
muck-commerce-0.2.2 lib/muck_commerce/tasks.rb
muck-commerce-0.2.1 lib/muck_commerce/tasks.rb
muck-commerce-0.2.0 lib/muck_commerce/tasks.rb
muck-commerce-0.1.9 lib/muck_commerce/tasks.rb
muck-commerce-0.1.8 lib/muck_commerce/tasks.rb