lib/blavosync/recipes/local.rb in blavosync-0.2.3 vs lib/blavosync/recipes/local.rb in blavosync-0.3.0

- old
+ new

@@ -19,11 +19,11 @@ def rails_root Pathname.new('.').realpath end def content_dir - "system" + exists?(:content_directory) ? fetch(:content_directory) : "system" end def content_path File.join(fetch(:shared_path), content_dir) end def public_path @@ -43,19 +43,19 @@ end def tmp_dir "tmp" end def content_sync_method - 'rsync' + exists?(:sync_method) ? sync_method : 'rsync' end def from_env (ENV['FROM_ENV'].nil? ? 'production' : ENV['RAILS_ENV']) end def to_env (ENV['TO_ENV'].nil? ? 'development' : ENV['TO_ENV']) end - def rsync_content_backup_file - "#{shared_path}/system" + def rsync_content_backup_file + "#{shared_path}/#{content_dir}" end def tar_content_backup_file "#{shared_path}/backup_#{from_env}_content.tar.#{zip_ext}" end def db_backup_file \ No newline at end of file