Sha256: 4685352607e3b43cb752f90650bf5c68f2764131f8a343268bfc19f7c3a88602

Contents?: true

Size: 649 Bytes

Versions: 19

Compression:

Stored size: 649 Bytes

Contents

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

module Disguise
  class Tasks < ::Rake::TaskLib
    def initialize
      define
    end
  
    private
    def define
      namespace :disguise do
        
        task :app_env do
          Rake::Task[:environment].invoke if defined?(RAILS_ROOT)
        end

        desc "Setup disguise"
        task :setup => :sync do

        end
        
        desc "Sync required files from disguise."
        task :sync do
          path = File.join(File.dirname(__FILE__), *%w[.. ..])
          system "rsync -ruv #{path}/db ."
        end
        
      end
    end
  end
end
Disguise::Tasks.new

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
jbasdf-disguise-0.1.1 lib/disguise/tasks.rb
disguise-2.0.0 lib/disguise/tasks.rb
disguise-0.4.0 lib/disguise/tasks.rb
disguise-0.3.12 lib/disguise/tasks.rb
disguise-0.3.11 lib/disguise/tasks.rb
disguise-0.3.10 lib/disguise/tasks.rb
disguise-0.3.8 lib/disguise/tasks.rb
disguise-0.3.7 lib/disguise/tasks.rb
disguise-0.3.6 lib/disguise/tasks.rb
disguise-0.3.1 lib/disguise/tasks.rb
disguise-0.3.2 lib/disguise/tasks.rb
disguise-0.3.3 lib/disguise/tasks.rb
disguise-0.3.4 lib/disguise/tasks.rb
disguise-0.3.5 lib/disguise/tasks.rb
disguise-0.2.0 lib/disguise/tasks.rb
disguise-0.1.3 lib/disguise/tasks.rb
disguise-0.1.1 lib/disguise/tasks.rb
disguise-0.3.0 lib/disguise/tasks.rb
disguise-0.1.2 lib/disguise/tasks.rb