vlad 2.6.1 → 2.6.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.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 2.6.2 / 2013-08-19
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Split update_symlinks task into update_symlinks and set_current_release. (ingeniarius)
6
+
1
7
  === 2.6.1 / 2013-07-23
2
8
 
3
9
  * 1 bug fix:
data/README.txt CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  home :: http://rubyhitsquad.com/
4
4
  code :: https://github.com/seattlerb/vlad
5
- rdoc :: http://hitsquad.rubyforge.org/vlad
5
+ rdoc :: http://docs.seattlerb.org/vlad
6
6
 
7
7
  == DESCRIPTION
8
8
 
data/lib/vlad.rb CHANGED
@@ -21,7 +21,7 @@ module Vlad
21
21
 
22
22
  ##
23
23
  # This is the version of Vlad you are running.
24
- VERSION = "2.6.1"
24
+ VERSION = "2.6.2"
25
25
 
26
26
  ##
27
27
  # Loads tasks file +tasks_file+ and various recipe styles as a hash
data/lib/vlad/core.rb CHANGED
@@ -66,6 +66,7 @@ namespace :vlad do
66
66
  remote_task :update, :roles => :app do
67
67
  Rake::Task['vlad:update_app'].invoke
68
68
  Rake::Task['vlad:update_symlinks'].invoke
69
+ Rake::Task['vlad:set_current_release'].invoke
69
70
  Rake::Task['vlad:log_revision'].invoke
70
71
  end
71
72
 
@@ -102,7 +103,7 @@ namespace :vlad do
102
103
  end
103
104
  end
104
105
 
105
- desc "Updates up your symlinks, sets the latest revision to current and updates symlink for shared path".cleanup
106
+ desc "Updates up your symlinks for shared path".cleanup
106
107
 
107
108
  remote_task :update_symlinks, :roles => :app do
108
109
  begin
@@ -112,6 +113,18 @@ namespace :vlad do
112
113
  ops << "ln -s #{shared_path}/#{sp} #{latest_release}/#{rp}"
113
114
  end
114
115
  end
116
+ run ops.join(' && ') unless ops.empty?
117
+ rescue => e
118
+ run "rm -rf #{release_path}"
119
+ raise e
120
+ end
121
+ end
122
+
123
+ desc "Sets the latest revision to current".cleanup
124
+
125
+ remote_task :set_current_release, :roles => :app do
126
+ begin
127
+ ops = []
115
128
  ops << "rm -f #{current_path}"
116
129
  ops << "ln -s #{latest_release} #{current_path}"
117
130
  run ops.join(' && ') unless ops.empty?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vlad
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 6
9
- - 1
10
- version: 2.6.1
9
+ - 2
10
+ version: 2.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -38,7 +38,7 @@ cert_chain:
38
38
  FBHgymkyj/AOSqKRIpXPhjC6
39
39
  -----END CERTIFICATE-----
40
40
 
41
- date: 2013-07-23 00:00:00 Z
41
+ date: 2013-08-19 00:00:00 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rake
@@ -115,11 +115,11 @@ dependencies:
115
115
  requirements:
116
116
  - - ~>
117
117
  - !ruby/object:Gem::Version
118
- hash: 11
118
+ hash: 9
119
119
  segments:
120
120
  - 3
121
- - 6
122
- version: "3.6"
121
+ - 7
122
+ version: "3.7"
123
123
  type: :development
124
124
  version_requirements: *id005
125
125
  description: |-
@@ -175,8 +175,8 @@ files:
175
175
  - vladdemo.sh
176
176
  - .gemtest
177
177
  homepage: http://rubyhitsquad.com/
178
- licenses: []
179
-
178
+ licenses:
179
+ - MIT
180
180
  post_install_message:
181
181
  rdoc_options:
182
182
  - --main
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- -���%yNA_uzrr����{�e��|���7�����=1��lq%f�B�城V�PCa���5�f[L�(�R}���-��v�ͭk� ��)���=��~�$T���L�q5r���vq�
2
- j�Q2�?W�"�`�����+􀾇u�WwE}����7�;�ۋ~� M�d�k{��G�ލ��M�2�=��k�G#��!��>?�Cum_��7�ӡ�>s`�涷b����Ӡ�,*�������n�l����~�c�g�昭
1
+ 5֑TtQ�*�����&�Tq.�)|t0K�^�G��m��̒82ub��8x_��eIq*���\b��B�ؠ