forkcms_3_deploy 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "forkcms_3_deploy"
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tijs Verkoyen", "Sam Tubbax"]
12
- s.date = "2011-11-12"
12
+ s.date = "2012-09-04"
13
13
  s.description = "Deployment for Fork 3.x.x with Capistrano"
14
14
  s.email = "info@sumocoders.be"
15
15
  s.extra_rdoc_files = [
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  ]
28
28
  s.homepage = "https://github.com/sumocoders/forkcms_3_deploy"
29
29
  s.require_paths = ["lib"]
30
- s.rubygems_version = "1.8.11"
30
+ s.rubygems_version = "1.8.24"
31
31
  s.summary = "Deployment for Fork 3.x.x with Capistrano"
32
32
 
33
33
  if s.respond_to? :specification_version then
@@ -1,25 +1,31 @@
1
1
  configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)
2
2
 
3
3
  configuration.load do
4
- # don't use sudo, on most shared setups we won't have sudo-access
5
- set :use_sudo, false
4
+ def _cset(name, *args, &block)
5
+ unless exists?(name)
6
+ set(name, *args, &block)
7
+ end
8
+ end
6
9
 
7
- # we're on a share setup so group_writable isn't allowed
8
- set :group_writable, false
10
+ # don't use sudo, on most shared setups we won't have sudo-access
11
+ _cset(:use_sudo) { false }
9
12
 
10
- # 3 releases should be enough.
11
- set :keep_releases, 3
13
+ # we're on a share setup so group_writable isn't allowed
14
+ _cset(:group_writable) { false }
12
15
 
13
- # remote caching will keep a local git repo on the server you're deploying to and simply run a fetch from that
14
- # rather than an entire clone. This is probably the best option and will only fetch the differences each deploy
15
- set :deploy_via, :remote_cache
16
+ # 3 releases should be enough.
17
+ _cset(:keep_releases) { 3 }
16
18
 
17
- # set the value for pseudo terminals in Capistrano
18
- default_run_options[:pty] = true
19
+ # remote caching will keep a local git repo on the server you're deploying to and simply run a fetch from that
20
+ # rather than an entire clone. This is probably the best option and will only fetch the differences each deploy
21
+ _cset(:deploy_via) { remote_cache }
22
+
23
+ # set the value for pseudo terminals in Capistrano
24
+ default_run_options[:pty] = true
25
+
26
+ # your computer must be running ssh-agent for the git checkout to work from the server to the git server
27
+ set :ssh_options, { :forward_agent => true }
19
28
 
20
- # your computer must be running ssh-agent for the git checkout to work from the server to the git server
21
- set :ssh_options, { :forward_agent => true }
22
-
23
29
  # set version control type and copy strategy
24
30
  set :scm, :git
25
31
  set :copy_strategy, :checkout
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forkcms_3_deploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 1
10
- version: 1.1.1
9
+ - 2
10
+ version: 1.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tijs Verkoyen
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-11-12 00:00:00 Z
19
+ date: 2012-09-04 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: capistrano
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements: []
81
81
 
82
82
  rubyforge_project:
83
- rubygems_version: 1.8.11
83
+ rubygems_version: 1.8.24
84
84
  signing_key:
85
85
  specification_version: 3
86
86
  summary: Deployment for Fork 3.x.x with Capistrano