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