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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/if-vlad-recipes/zip.rb +7 -5
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -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 = "to_deploy"
7
- tmp_dir = "/tmp/#{tmp_name}"
8
- src_name = "#{RAILS_ROOT}/to_deploy.if_app"
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 > #{src_name}",
34
+ "tar cf - #{tmp_name} | gzip > #{if_app_name}",
33
35
  "rm -rf #{tmp_dir}"
34
36
  ].join(';')
35
- puts "Created #{src_name}".color(:green)
37
+ puts "Created #{if_app_name}".color(:green)
36
38
  end
37
39
  end
38
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: if-vlad-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Aaron