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 CHANGED
@@ -1 +1 @@
1
- 0.1.0
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
- remote_task :update, :roles => :app do
8
+ task :update do
9
9
  symlink = false
10
10
  begin
11
- run [
11
+ sh [
12
12
  "mkdir -p #{release_path}",
13
- "cp #{RAILS_ROOT}/tmp/to_deploy.tgz #{release_path}/",
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
- run "rm -f #{current_path} && ln -s #{latest_release} #{current_path}"
22
- run "echo #{Time.now} $USER #{revision} #{File.basename release_path} >> #{deploy_to}/revisions.log"
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
- run "rm -f #{current_path} && ln -s #{previous_release} #{current_path}" if symlink
25
- run "rm -rf #{release_path}"
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
@@ -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}/tmp/to_deploy.if_app"
8
+ src_name = "#{RAILS_ROOT}/to_deploy.if_app"
9
9
  puts "Creating deployable app".color(:yellow)
10
- puts "(Please note, I'm not copying across .git, doc, shared or designs)".color(:red)
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}",
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Aaron