if-vlad-recipes 0.1.1 → 0.1.2
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/zip.rb +7 -5
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/if-vlad-recipes/zip.rb
CHANGED
@@ -3,9 +3,11 @@ namespace :vlad do
|
|
3
3
|
|
4
4
|
desc "Create a tgz version of this source in tmp/app.tgz"
|
5
5
|
task :zip do
|
6
|
-
tmp_name
|
7
|
-
tmp_dir
|
8
|
-
|
6
|
+
tmp_name = "to_deploy"
|
7
|
+
tmp_dir = "/tmp/#{tmp_name}"
|
8
|
+
app_name = RAILS_ROOT.split('/').last
|
9
|
+
src_name = "#{RAILS_ROOT}/to_deploy.if_app"
|
10
|
+
if_app_name = "#{RAILS_ROOT}/to_deploy_#{app_name}.if_app"
|
9
11
|
puts "Creating deployable app".color(:yellow)
|
10
12
|
puts "(Please note, I'm not including .git, doc, shared or designs)".color(:red)
|
11
13
|
puts "Please wait, this might take a moment...".color(:yellow)
|
@@ -29,10 +31,10 @@ namespace :vlad do
|
|
29
31
|
"rm -rf #{tmp_dir}/designs",
|
30
32
|
"rm -rf #{tmp_dir}/doc",
|
31
33
|
"cd /tmp",
|
32
|
-
"tar cf - #{tmp_name} | gzip > #{
|
34
|
+
"tar cf - #{tmp_name} | gzip > #{if_app_name}",
|
33
35
|
"rm -rf #{tmp_dir}"
|
34
36
|
].join(';')
|
35
|
-
puts "Created #{
|
37
|
+
puts "Created #{if_app_name}".color(:green)
|
36
38
|
end
|
37
39
|
end
|
38
40
|
end
|