if-vlad-recipes 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/if-vlad-recipes/update-from-local.rb +7 -7
- data/lib/if-vlad-recipes/zip.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -5,12 +5,12 @@ namespace :vlad do
|
|
5
5
|
desc "Updates your application server to the latest revision stored
|
6
6
|
in a folder on the local filesystem".cleanup
|
7
7
|
|
8
|
-
|
8
|
+
task :update do
|
9
9
|
symlink = false
|
10
10
|
begin
|
11
|
-
|
11
|
+
sh [
|
12
12
|
"mkdir -p #{release_path}",
|
13
|
-
"cp #{RAILS_ROOT}/
|
13
|
+
"cp #{RAILS_ROOT}/to_deploy.if_app #{release_path}/to_deploy.tgz",
|
14
14
|
"cd #{release_path}",
|
15
15
|
"tar -xvzf to_deploy.tgz",
|
16
16
|
"rm to_deploy.tgz",
|
@@ -18,11 +18,11 @@ namespace :vlad do
|
|
18
18
|
].join(" && ")
|
19
19
|
|
20
20
|
symlink = true
|
21
|
-
|
22
|
-
|
21
|
+
sh "rm -f #{current_path} && ln -s #{latest_release} #{current_path}"
|
22
|
+
sh "echo #{Time.now} $USER #{revision} #{File.basename release_path} >> #{deploy_to}/revisions.log"
|
23
23
|
rescue => e
|
24
|
-
|
25
|
-
|
24
|
+
sh "rm -f #{current_path} && ln -s #{previous_release} #{current_path}" if symlink
|
25
|
+
sh "rm -rf #{release_path}"
|
26
26
|
raise
|
27
27
|
end
|
28
28
|
end
|
data/lib/if-vlad-recipes/zip.rb
CHANGED
@@ -5,9 +5,9 @@ namespace :vlad do
|
|
5
5
|
task :zip do
|
6
6
|
tmp_name = "to_deploy"
|
7
7
|
tmp_dir = "/tmp/#{tmp_name}"
|
8
|
-
src_name = "#{RAILS_ROOT}/
|
8
|
+
src_name = "#{RAILS_ROOT}/to_deploy.if_app"
|
9
9
|
puts "Creating deployable app".color(:yellow)
|
10
|
-
puts "(Please note, I'm not
|
10
|
+
puts "(Please note, I'm not including .git, doc, shared or designs)".color(:red)
|
11
11
|
puts "Please wait, this might take a moment...".color(:yellow)
|
12
12
|
sh [
|
13
13
|
"rm -rf #{tmp_dir}",
|