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 CHANGED
Binary file
@@ -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
@@ -1,7 +1,7 @@
1
1
  = Vlad the Deployer by the Ruby Hit Squad
2
2
 
3
3
  home :: http://rubyhitsquad.com/
4
- repo :: https://github.com/seattlerb/vlad
4
+ code :: https://github.com/seattlerb/vlad
5
5
  rdoc :: http://hitsquad.rubyforge.org/vlad
6
6
 
7
7
  == DESCRIPTION
data/Rakefile CHANGED
@@ -6,6 +6,8 @@ require 'hoe'
6
6
  Hoe.plugin :seattlerb
7
7
  Hoe.plugin :isolate
8
8
 
9
+ Hoe.add_include_dirs "../../rake-remote_task/dev/lib"
10
+
9
11
  Hoe.spec 'vlad' do
10
12
  self.rubyforge_name = 'hitsquad'
11
13
 
@@ -21,7 +21,7 @@ module Vlad
21
21
 
22
22
  ##
23
23
  # This is the version of Vlad you are running.
24
- VERSION = "2.4.1"
24
+ VERSION = "2.5.0"
25
25
 
26
26
  ##
27
27
  # Loads tasks file +tasks_file+ and various recipe styles as a hash
@@ -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}"
@@ -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('HEAD')
23
- expected = "`svn info svn+ssh://repo/myproject | grep 'Revision:' | cut -f2 -d\\ `"
24
- assert_equal expected, cmd
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
- - 4
9
- - 1
10
- version: 2.4.1
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-02-28 00:00:00 Z
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: 23
88
+ hash: 31
89
89
  segments:
90
- - 4
91
- - 6
92
- version: "4.6"
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: 19
103
+ hash: 27
104
104
  segments:
105
- - 3
106
- - 10
107
- version: "3.10"
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: 13
118
+ hash: 11
119
119
  segments:
120
120
  - 3
121
- - 5
122
- version: "3.5"
121
+ - 6
122
+ version: "3.6"
123
123
  type: :development
124
124
  version_requirements: *id005
125
125
  description: |-
metadata.gz.sig CHANGED
Binary file