vlad 2.2.1 → 2.2.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,15 @@
1
+ === 2.2.2 / 2011-09-06
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added FAQ item about bundler breaking stuff. *sigh*
6
+
7
+ * 3 bug fixes:
8
+
9
+ * Fix an scm bug when using skip_scm (richinsr)
10
+ * Fixed typo in variables (flog->flag). (appfertigung)
11
+ * Fixed vlad:start_app for passenger computing a new latest_release (dbloete)
12
+
1
13
  === 2.2.1 / 2011-06-22
2
14
 
3
15
  * 1 bug fix:
data/README.txt CHANGED
@@ -1,7 +1,8 @@
1
1
  = Vlad the Deployer by the Ruby Hit Squad
2
2
 
3
- * http://rubyhitsquad.com/
4
- * http://rubyforge.org/projects/hitsquad/
3
+ home :: http://rubyhitsquad.com/
4
+ repo :: https://github.com/seattlerb/vlad
5
+ rdoc :: http://hitsquad.rubyforge.org/vlad
5
6
 
6
7
  == DESCRIPTION
7
8
 
@@ -56,7 +57,7 @@ Impale your application on the heartless spike of the Deployer.
56
57
 
57
58
  (The MIT License)
58
59
 
59
- Copyright (c) 2007-2009 Ryan Davis and the rest of the Ruby Hit Squad
60
+ Copyright (c) Ryan Davis and the rest of the Ruby Hit Squad
60
61
 
61
62
  Permission is hereby granted, free of charge, to any person obtaining
62
63
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ Hoe.spec 'vlad' do
18
18
  dependency 'open4', '~> 0.9.0'
19
19
 
20
20
  # TODO: remove 1.9
21
- multiruby_skip << "1.9" << "rubinius"
21
+ multiruby_skip << "rubinius"
22
22
  end
23
23
 
24
24
  desc "quick little hack to see what the state of the nation looks like"
data/doco/faq.txt CHANGED
@@ -57,12 +57,12 @@ To prepend on a task, add a dependency:
57
57
  NOTE: Rake.clear_tasks was moved to Hoe so it could be used more generally.
58
58
 
59
59
  require 'hoe/rake'
60
-
60
+
61
61
  namespace :vlad do
62
62
  # Clear existing update task so that we can redefine instead of
63
63
  # adding to it.
64
- Rake.clear_tasks('vlad:update')
65
-
64
+ Rake.clear_tasks('vlad:update')
65
+
66
66
  remote_task :update, :roles => :app do
67
67
  #custom update stuff
68
68
  end
@@ -73,7 +73,7 @@ NOTE: Rake.clear_tasks was moved to Hoe so it could be used more generally.
73
73
 
74
74
  task :shazam! => [:action1, :action2]
75
75
 
76
- The other way is to look it up and call invoke:
76
+ The other way is to look it up and call invoke:
77
77
 
78
78
  task :shazam! do
79
79
  Rake::Task[:action1].invoke
@@ -113,8 +113,8 @@ If you're on a mac (on tiger, not leopard), use SSHKeychain, we love it. <http:/
113
113
  === Q: How do I use Vlad with a gateway?
114
114
  === A: Add the following to your deploy.rb variables:
115
115
 
116
- set :ssh_flags, "-A #{mygateway}"
117
- set :rsync_flags, "--rsh ssh -A #{mygateway} ssh"
116
+ set :ssh_flags, ['-A', mygateway, 'ssh', '-A']
117
+ set :rsync_flags, ['--rsh', 'ssh', '-A', mygateway, 'ssh']
118
118
 
119
119
  === Q: OMG subversion is stupid! It keeps asking for "Authentication Realm"
120
120
  === A: Yes, yes it is.
@@ -134,3 +134,15 @@ checkout over ssh should work fine.
134
134
  ... works fine ...
135
135
  % ssh localhost svn co https://blah/blah /tmp/happy2
136
136
  ... works fine ...
137
+
138
+ == Using Bundler
139
+
140
+ === Q: OMG Bundler is stupid! It requires vlad in my app and that breaks stuff!
141
+ === A: Yes, yes it is.
142
+
143
+ As far as we're concerned, that "feature" in bundler is a bug. One
144
+ workaround is to tell bundler not to require vlad for you.
145
+
146
+ group :development do
147
+ gem 'vlad', :require => false
148
+ end
data/doco/variables.txt CHANGED
@@ -41,7 +41,7 @@ shared_path:: Full path to remote 'shared' directory, symlinked into
41
41
  ssh_cmd:: Path to ssh. Defaults to "ssh".
42
42
  ssh_flags:: Flags for ssh. Defaults to [].
43
43
  sudo_cmd:: Path to sudo command. Defaults to "sudo".
44
- sudo_flags:: Flogs for sudo. Defaults to ["-p Password:"].
44
+ sudo_flags:: Flags for sudo. Defaults to ["-p Password:"].
45
45
  sudo_prompt:: Regexp for sudo password prompt. Defaults to /^Password:/.
46
46
  sudo_password:: Asks for password when referenced.
47
47
  umask:: Sets your umask value. Defaults to "02".
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.2.1'
24
+ VERSION = '2.2.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
@@ -39,7 +39,8 @@ namespace :vlad do
39
39
  desc "Prepares application servers for deployment.".cleanup
40
40
 
41
41
  remote_task :setup_app, :roles => :app do
42
- dirs = [deploy_to, releases_path, scm_path, shared_path]
42
+ dirs = [deploy_to, releases_path, shared_path]
43
+ dirs << scm_path unless skip_scm
43
44
  dirs += shared_paths.keys.map { |d| File.join(shared_path, d) }
44
45
  dirs = dirs.join(' ')
45
46
 
@@ -61,13 +62,14 @@ namespace :vlad do
61
62
  remote_task :update, :roles => :app do
62
63
  symlink = false
63
64
  begin
64
- commands = [
65
- "umask #{umask}",
66
- "cd #{scm_path}",
67
- "#{source.checkout revision, scm_path}",
68
- "#{source.export revision, release_path}",
69
- "chmod -R g+w #{latest_release}",
70
- ]
65
+ commands = ["umask #{umask}"]
66
+ unless skip_scm
67
+ commands << "cd #{scm_path}"
68
+ commands << "#{source.checkout revision, scm_path}"
69
+ end
70
+ commands << "#{source.export revision, release_path}"
71
+ commands << "chmod -R g+w #{latest_release}"
72
+
71
73
  unless shared_paths.empty?
72
74
  commands << "rm -rf #{shared_paths.values.map { |p| File.join(latest_release, p) }.join(' ')}"
73
75
  end
data/lib/vlad/rails.rb CHANGED
@@ -21,7 +21,7 @@ namespace :vlad do
21
21
 
22
22
  directory = case migrate_target.to_sym
23
23
  when :current then current_path
24
- when :latest then current_release
24
+ when :latest then latest_release
25
25
  else
26
26
  raise(ArgumentError,
27
27
  "unknown migration target #{migrate_target.inspect}")
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 1
10
- version: 2.2.1
9
+ - 2
10
+ version: 2.2.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: 2011-06-23 00:00:00 Z
41
+ date: 2011-09-06 00:00:00 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rake
@@ -94,11 +94,11 @@ dependencies:
94
94
  requirements:
95
95
  - - ~>
96
96
  - !ruby/object:Gem::Version
97
- hash: 5
97
+ hash: 9
98
98
  segments:
99
99
  - 2
100
- - 3
101
- version: "2.3"
100
+ - 5
101
+ version: "2.5"
102
102
  type: :development
103
103
  version_requirements: *id004
104
104
  - !ruby/object:Gem::Dependency
@@ -109,11 +109,11 @@ dependencies:
109
109
  requirements:
110
110
  - - ~>
111
111
  - !ruby/object:Gem::Version
112
- hash: 17
112
+ hash: 27
113
113
  segments:
114
114
  - 2
115
- - 9
116
- version: "2.9"
115
+ - 12
116
+ version: "2.12"
117
117
  type: :development
118
118
  version_requirements: *id005
119
119
  description: |-
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  requirements: []
199
199
 
200
200
  rubyforge_project: hitsquad
201
- rubygems_version: 1.8.5
201
+ rubygems_version: 1.8.10
202
202
  signing_key:
203
203
  specification_version: 3
204
204
  summary: Vlad the Deployer is pragmatic application deployment automation, without mercy
metadata.gz.sig CHANGED
Binary file