railsless-deploy 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -0
- data/VERSION +1 -1
- data/lib/railsless-deploy.rb +15 -5
- metadata +30 -42
- data/.gitignore +0 -3
data/README.markdown
CHANGED
@@ -18,6 +18,8 @@ Open your application's `Capfile` and make it begins like this:
|
|
18
18
|
require 'railsless-deploy'
|
19
19
|
load 'config/deploy'
|
20
20
|
|
21
|
+
Taking care to remove the original `require 'deploy'` as this is where all the standard tasks are defined.
|
22
|
+
|
21
23
|
You should then be able to proceed as you would usually, you may want to familiarise yourself with the truncated list of tasks, you can get a full list with:
|
22
24
|
|
23
25
|
$ cap -T
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/lib/railsless-deploy.rb
CHANGED
@@ -61,10 +61,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
61
61
|
|
62
62
|
_cset(:run_method) { fetch(:use_sudo, true) ? :sudo : :run }
|
63
63
|
|
64
|
-
# some tasks, like
|
64
|
+
# some tasks, like create_symlink, need to always point at the latest release, but
|
65
65
|
# they can also (occassionally) be called standalone. In the standalone case,
|
66
66
|
# the timestamped release_path will be inaccurate, since the directory won't
|
67
|
-
# actually exist. This variable lets tasks like
|
67
|
+
# actually exist. This variable lets tasks like create_symlink work either in the
|
68
68
|
# standalone case, or during deployment.
|
69
69
|
_cset(:latest_release) { exists?(:deploy_timestamped) ? release_path : current_release }
|
70
70
|
|
@@ -174,7 +174,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
174
174
|
|
175
175
|
desc <<-DESC
|
176
176
|
Copies your project and updates the symlink. It does this in a \
|
177
|
-
transaction, so that if either `update_code' or `
|
177
|
+
transaction, so that if either `update_code' or `create_symlink' fail, all \
|
178
178
|
changes made to the remote servers will be rolled back, leaving your \
|
179
179
|
system in the same state it was in before `update' was invoked. Usually, \
|
180
180
|
you will want to call `deploy' instead of `update', but `update' can be \
|
@@ -183,7 +183,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
183
183
|
task :update do
|
184
184
|
transaction do
|
185
185
|
update_code
|
186
|
-
|
186
|
+
create_symlink
|
187
187
|
end
|
188
188
|
end
|
189
189
|
|
@@ -233,7 +233,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
233
233
|
deploy, including `restart') or the 'update' task (which does everything \
|
234
234
|
except `restart').
|
235
235
|
DESC
|
236
|
-
task :
|
236
|
+
task :create_symlink, :except => { :no_release => true } do
|
237
237
|
on_rollback do
|
238
238
|
if previous_release
|
239
239
|
run "rm -f #{current_path}; ln -s #{previous_release} #{current_path}; true"
|
@@ -245,6 +245,16 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
245
245
|
run "rm -f #{current_path} && ln -s #{latest_release} #{current_path}"
|
246
246
|
end
|
247
247
|
|
248
|
+
desc <<-DESC
|
249
|
+
Deprecated. Use `deploy:create_symlink` instead.
|
250
|
+
DESC
|
251
|
+
task :symlink, :except => { :no_release => true } do
|
252
|
+
warn "[Deprecation Warning] This API has changed, please use `deploy:create_symlink` instead of" \
|
253
|
+
" `deploy:symlink`."
|
254
|
+
|
255
|
+
create_symlink
|
256
|
+
end
|
257
|
+
|
248
258
|
desc <<-DESC
|
249
259
|
Copy files to the currently deployed version. This is useful for updating \
|
250
260
|
files piecemeal, such as when you need to quickly deploy only a single \
|
metadata
CHANGED
@@ -1,69 +1,57 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: railsless-deploy
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 1.0.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Lee Hambley
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2010-04-22 00:00:00 +02:00
|
18
|
-
default_executable:
|
12
|
+
date: 2012-09-21 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
|
14
|
+
description: Replacement for the rails deploy strategy which ships with Capistrano,
|
15
|
+
allows you to deploy any platform with ease; some people have had huge success with
|
16
|
+
this deploying rails projects where they needed to customise their deploy strategy
|
17
|
+
beyond the code which ships with the Capistrano gem.
|
22
18
|
email: lee.hambley@gmail.com
|
23
19
|
executables: []
|
24
|
-
|
25
20
|
extensions: []
|
26
|
-
|
27
|
-
extra_rdoc_files:
|
21
|
+
extra_rdoc_files:
|
28
22
|
- LICENSE.markdown
|
29
23
|
- README.markdown
|
30
|
-
files:
|
31
|
-
- .gitignore
|
24
|
+
files:
|
32
25
|
- CHANGELOG.markdown
|
33
26
|
- LICENSE.markdown
|
34
27
|
- README.markdown
|
35
28
|
- Rakefile
|
36
29
|
- VERSION
|
37
30
|
- lib/railsless-deploy.rb
|
38
|
-
has_rdoc: true
|
39
31
|
homepage: http://github.com/leehambley/railsless-deploy/
|
40
32
|
licenses: []
|
41
|
-
|
42
33
|
post_install_message:
|
43
|
-
rdoc_options:
|
44
|
-
|
45
|
-
require_paths:
|
34
|
+
rdoc_options: []
|
35
|
+
require_paths:
|
46
36
|
- lib
|
47
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
- 0
|
60
|
-
version: "0"
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
61
49
|
requirements: []
|
62
|
-
|
63
50
|
rubyforge_project:
|
64
|
-
rubygems_version: 1.
|
51
|
+
rubygems_version: 1.8.23
|
65
52
|
signing_key:
|
66
53
|
specification_version: 3
|
67
|
-
summary: Replacement for the default Capistrano tasks, designed to make life easier
|
54
|
+
summary: Replacement for the default Capistrano tasks, designed to make life easier
|
55
|
+
for PHP/Perl/Python developers
|
68
56
|
test_files: []
|
69
|
-
|
57
|
+
has_rdoc:
|
data/.gitignore
DELETED