vlad 2.4.1 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +11 -0
- data/README.txt +1 -1
- data/Rakefile +2 -0
- data/lib/vlad.rb +1 -1
- data/lib/vlad/core.rb +3 -3
- data/lib/vlad/subversion.rb +1 -9
- data/test/test_vlad_subversion.rb +6 -3
- metadata +16 -16
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== 2.5.0 / 2013-05-10
|
2
|
+
|
3
|
+
* 1 minor enhancement:
|
4
|
+
|
5
|
+
* Silo vlad:cleanup and vlad:rollback to app role. (contentfree)
|
6
|
+
|
7
|
+
* 2 bug fixes:
|
8
|
+
|
9
|
+
* Fixed code/home urls in readme/gem.
|
10
|
+
* Fixed problem with 'revisions variable or method not found'. (bitboxer/jleo3)
|
11
|
+
|
1
12
|
=== 2.4.1 / 2013-02-27
|
2
13
|
|
3
14
|
* 1 bug fix:
|
data/README.txt
CHANGED
data/Rakefile
CHANGED
data/lib/vlad.rb
CHANGED
data/lib/vlad/core.rb
CHANGED
@@ -73,7 +73,7 @@ namespace :vlad do
|
|
73
73
|
commands << "#{source.checkout revision, scm_path}"
|
74
74
|
end
|
75
75
|
commands << "#{source.export revision, release_path}"
|
76
|
-
|
76
|
+
|
77
77
|
unless shared_paths.empty?
|
78
78
|
commands << "rm -rf #{shared_paths.values.map { |p| File.join(latest_release, p) }.join(' ')}"
|
79
79
|
end
|
@@ -173,7 +173,7 @@ namespace :vlad do
|
|
173
173
|
you're right back where you were, on the previously deployed
|
174
174
|
version.".cleanup
|
175
175
|
|
176
|
-
remote_task :rollback do
|
176
|
+
remote_task :rollback, :roles => :app do
|
177
177
|
if releases.length < 2 then
|
178
178
|
abort "could not rollback the code because there is no prior release"
|
179
179
|
else
|
@@ -187,7 +187,7 @@ namespace :vlad do
|
|
187
187
|
each server (though you can change this with the keep_releases variable).
|
188
188
|
All other deployed revisions are removed from the servers.".cleanup
|
189
189
|
|
190
|
-
remote_task :cleanup do
|
190
|
+
remote_task :cleanup, :roles => :app do
|
191
191
|
max = keep_releases
|
192
192
|
if releases.length <= max then
|
193
193
|
puts "no old releases to clean up #{releases.length} <= #{max}"
|
data/lib/vlad/subversion.rb
CHANGED
@@ -2,6 +2,7 @@ class Vlad::Subversion
|
|
2
2
|
|
3
3
|
set :source, Vlad::Subversion.new
|
4
4
|
set :svn_cmd, "svn"
|
5
|
+
set :revision, "HEAD"
|
5
6
|
|
6
7
|
##
|
7
8
|
# Returns the command that will check out +revision+ from the repository
|
@@ -23,13 +24,4 @@ class Vlad::Subversion
|
|
23
24
|
"#{revision_or_source} #{destination}"
|
24
25
|
end
|
25
26
|
end
|
26
|
-
|
27
|
-
##
|
28
|
-
# Returns a command that maps human-friendly revision identifier +revision+
|
29
|
-
# into a subversion revision specification.
|
30
|
-
|
31
|
-
def revision(revision)
|
32
|
-
"`#{svn_cmd} info #{repository} | grep 'Revision:' | cut -f2 -d\\ `"
|
33
|
-
end
|
34
27
|
end
|
35
|
-
|
@@ -19,8 +19,11 @@ class TestVladSubversion < MiniTest::Unit::TestCase
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def test_revision
|
22
|
-
cmd = @scm.revision
|
23
|
-
|
24
|
-
|
22
|
+
cmd = @scm.revision
|
23
|
+
assert_equal "HEAD", cmd
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_set_defaults
|
27
|
+
[source, svn_cmd, revision].each { |var| assert var }
|
25
28
|
end
|
26
29
|
end
|
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 2.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 2.5.0
|
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-
|
41
|
+
date: 2013-05-10 00:00:00 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rake
|
@@ -85,11 +85,11 @@ dependencies:
|
|
85
85
|
requirements:
|
86
86
|
- - ~>
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
hash:
|
88
|
+
hash: 31
|
89
89
|
segments:
|
90
|
-
-
|
91
|
-
-
|
92
|
-
version: "
|
90
|
+
- 5
|
91
|
+
- 0
|
92
|
+
version: "5.0"
|
93
93
|
type: :development
|
94
94
|
version_requirements: *id003
|
95
95
|
- !ruby/object:Gem::Dependency
|
@@ -100,11 +100,11 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
hash:
|
103
|
+
hash: 27
|
104
104
|
segments:
|
105
|
-
-
|
106
|
-
-
|
107
|
-
version: "
|
105
|
+
- 4
|
106
|
+
- 0
|
107
|
+
version: "4.0"
|
108
108
|
type: :development
|
109
109
|
version_requirements: *id004
|
110
110
|
- !ruby/object:Gem::Dependency
|
@@ -115,11 +115,11 @@ dependencies:
|
|
115
115
|
requirements:
|
116
116
|
- - ~>
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
hash:
|
118
|
+
hash: 11
|
119
119
|
segments:
|
120
120
|
- 3
|
121
|
-
-
|
122
|
-
version: "3.
|
121
|
+
- 6
|
122
|
+
version: "3.6"
|
123
123
|
type: :development
|
124
124
|
version_requirements: *id005
|
125
125
|
description: |-
|
metadata.gz.sig
CHANGED
Binary file
|