capium 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/capium.rb +6 -6
  2. metadata +49 -30
@@ -68,10 +68,10 @@ Capistrano::Configuration.instance(:must_exist).load do
68
68
 
69
69
  _cset(:run_method) { fetch(:use_sudo, true) ? :sudo : :run }
70
70
 
71
- # some tasks, like symlink, need to always point at the latest release, but
71
+ # some tasks, like create_symlink, need to always point at the latest release, but
72
72
  # they can also (occassionally) be called standalone. In the standalone case,
73
73
  # the timestamped release_path will be inaccurate, since the directory won't
74
- # actually exist. This variable lets tasks like symlink work either in the
74
+ # actually exist. This variable lets tasks like create_symlink work either in the
75
75
  # standalone case, or during deployment.
76
76
  _cset(:latest_release) { exists?(:deploy_timestamped) ? release_path : current_release }
77
77
 
@@ -156,7 +156,7 @@ Capistrano::Configuration.instance(:must_exist).load do
156
156
  def capium()
157
157
  set :deploy_to, "/var/www/#{application}" if (deploy_to.empty?)
158
158
  after("deploy:setup", "lithium:setup")
159
- after("deploy:symlink", "lithium:configure_library_path", "lithium:clear_cache")
159
+ after("deploy:create_symlink", "lithium:configure_library_path", "lithium:clear_cache")
160
160
  end
161
161
 
162
162
  # =========================================================================
@@ -196,7 +196,7 @@ Capistrano::Configuration.instance(:must_exist).load do
196
196
 
197
197
  desc <<-DESC
198
198
  Copies your project and updates the symlink. It does this in a \
199
- transaction, so that if either `update_code' or `symlink' fail, all \
199
+ transaction, so that if either `update_code' or `create_symlink' fail, all \
200
200
  changes made to the remote servers will be rolled back, leaving your \
201
201
  system in the same state it was in before `update' was invoked. Usually, \
202
202
  you will want to call `deploy' instead of `update', but `update' can be \
@@ -205,7 +205,7 @@ Capistrano::Configuration.instance(:must_exist).load do
205
205
  task :update do
206
206
  transaction do
207
207
  update_code
208
- symlink
208
+ create_symlink
209
209
  end
210
210
  end
211
211
 
@@ -255,7 +255,7 @@ Capistrano::Configuration.instance(:must_exist).load do
255
255
  deploy, including `restart') or the 'update' task (which does everything \
256
256
  except `restart').
257
257
  DESC
258
- task :symlink, :except => { :no_release => true } do
258
+ task :create_symlink, :except => { :no_release => true } do
259
259
  on_rollback do
260
260
  if previous_release
261
261
  run "rm -f #{current_path}; ln -s #{previous_release} #{current_path}; true"
metadata CHANGED
@@ -1,58 +1,77 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: capium
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Mehdi Lahmam B.
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2011-10-25 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2012-12-31 00:00:00 +01:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: capistrano
16
- requirement: &70281785269540 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 8
30
+ - 0
21
31
  version: 2.8.0
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70281785269540
33
+ version_requirements: *id001
25
34
  description: Lithium app deployment using Capistrano made easy
26
35
  email: mehdi@lahmam.com
27
36
  executables: []
37
+
28
38
  extensions: []
39
+
29
40
  extra_rdoc_files: []
30
- files:
41
+
42
+ files:
31
43
  - README.md
32
44
  - LICENSE
33
45
  - lib/capium.rb
46
+ has_rdoc: true
34
47
  homepage: http://rubygems.org/gems/capium
35
48
  licenses: []
49
+
36
50
  post_install_message:
37
51
  rdoc_options: []
38
- require_paths:
52
+
53
+ require_paths:
39
54
  - lib
40
- required_ruby_version: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- required_rubygems_version: !ruby/object:Gem::Requirement
47
- none: false
48
- requirements:
49
- - - ! '>='
50
- - !ruby/object:Gem::Version
51
- version: '0'
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ segments:
67
+ - 0
68
+ version: "0"
52
69
  requirements: []
70
+
53
71
  rubyforge_project:
54
- rubygems_version: 1.8.10
72
+ rubygems_version: 1.3.6
55
73
  signing_key:
56
74
  specification_version: 3
57
75
  summary: Capistrano deploy recipes for Lithium
58
76
  test_files: []
77
+