railman-deployment 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/railman/tasks/deployment.rake +1 -13
- data/lib/railman-deployment/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f684befde7f00c65af4157031eee8a5b3d26f901cf3a9ba192ac45e93752e651
|
4
|
+
data.tar.gz: 7562d5a59de557acf90a4de226652e338d165ebc714b231b81d7b0e6f5a93adb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1fa5f6ade8386913f0830f4a9e7ef1b242fa8d57998af2b3ebb9ef449dc5b5e0b10a353da1dfd4660b1f11b38c8711c4070e92cbbf1165bc296d4ba943bb6c5
|
7
|
+
data.tar.gz: cdf5ebae31270a3fcd5eceaf835063f8be45754caa34e9e14363879718355653075445ae1730bb7015618c108dbcc28054fcb7f28b397c9333322d96176c26de
|
@@ -91,20 +91,8 @@ task :update do
|
|
91
91
|
end
|
92
92
|
run_locally do
|
93
93
|
execute "psql -d #{fetch(:application)}_development -f db/#{fetch(:application)}.sql"
|
94
|
-
invoke :sync_local_dirs_from_server
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
task :sync_local_dirs_to_server do
|
99
|
-
on roles(:all) do
|
100
|
-
fetch(:sync_dirs, []).each do |sync_dir|
|
101
|
-
if File.exists?("./#{sync_dir}")
|
102
|
-
run_locally do
|
103
|
-
execute "rsync -avz --delete -e ssh ./#{sync_dir}/ #{fetch(:user)}@#{fetch(:server)}:#{fetch(:deploy_to)}/#{sync_dir}/"
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
107
94
|
end
|
95
|
+
invoke :sync_local_dirs_from_server
|
108
96
|
end
|
109
97
|
|
110
98
|
task :sync_local_dirs_from_server do
|