crossroads_capistrano 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/crossroads_capistrano.gemspec +1 -1
- data/lib/crossroads_capistrano.rb +7 -5
- metadata +20 -40
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "crossroads_capistrano"
|
6
|
-
s.version = "1.2.
|
6
|
+
s.version = "1.2.9"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Steve Kenworthy", "Ben Tillman", "Nathan Broadbent"]
|
9
9
|
s.email = ["it_dept@crossroads.org.hk"]
|
@@ -1,21 +1,23 @@
|
|
1
1
|
module CrossroadsCapistrano
|
2
|
-
|
2
|
+
begin
|
3
3
|
@@cap_config = Capistrano::Configuration.instance(:must_exist)
|
4
4
|
class << self
|
5
5
|
def load_recipes(recipes)
|
6
6
|
@@cap_config.load do
|
7
7
|
if recipes == :all
|
8
8
|
# Load all available recipes.
|
9
|
-
Dir.glob(File.join(File.dirname(__FILE__), 'crossroads_capistrano', '*.rb'))
|
9
|
+
recipes = Dir.glob(File.join(File.dirname(__FILE__), 'crossroads_capistrano', '*.rb'))
|
10
|
+
recipes.each{|f| load f}
|
10
11
|
else
|
11
12
|
# Load each specified recipe.
|
12
|
-
recipes.each
|
13
|
+
recipes.each{|r| load File.join(File.dirname(__FILE__),'crossroads_capistrano',"#{r}.rb")}
|
13
14
|
end
|
14
15
|
end
|
15
16
|
end
|
16
17
|
end
|
17
|
-
|
18
|
-
|
18
|
+
rescue LoadError => ex
|
19
|
+
# Ignore this gem if Capistrano is not loaded.
|
20
|
+
raise ex unless ex.message == "Please require this file from within a Capistrano recipe"
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
metadata
CHANGED
@@ -1,36 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: crossroads_capistrano
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
- 8
|
10
|
-
version: 1.2.8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.9
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Steve Kenworthy
|
14
9
|
- Ben Tillman
|
15
10
|
- Nathan Broadbent
|
16
11
|
autorequire:
|
17
12
|
bindir: bin
|
18
13
|
cert_chain: []
|
19
|
-
|
20
|
-
date: 2011-05-12 00:00:00 +08:00
|
14
|
+
date: 2011-05-14 00:00:00.000000000 +08:00
|
21
15
|
default_executable:
|
22
16
|
dependencies: []
|
23
|
-
|
24
17
|
description: A Crossroads Foundation collection of generic capistrano recipes.
|
25
|
-
email:
|
18
|
+
email:
|
26
19
|
- it_dept@crossroads.org.hk
|
27
20
|
executables: []
|
28
|
-
|
29
21
|
extensions: []
|
30
|
-
|
31
22
|
extra_rdoc_files: []
|
32
|
-
|
33
|
-
files:
|
23
|
+
files:
|
34
24
|
- .gitignore
|
35
25
|
- Gemfile
|
36
26
|
- README.textile
|
@@ -51,36 +41,26 @@ files:
|
|
51
41
|
has_rdoc: true
|
52
42
|
homepage: http://www.crossroads.org.hk
|
53
43
|
licenses: []
|
54
|
-
|
55
44
|
post_install_message:
|
56
45
|
rdoc_options: []
|
57
|
-
|
58
|
-
require_paths:
|
46
|
+
require_paths:
|
59
47
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
49
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
66
|
-
|
67
|
-
- 0
|
68
|
-
version: "0"
|
69
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
55
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
56
|
+
requirements:
|
57
|
+
- - ! '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
78
60
|
requirements: []
|
79
|
-
|
80
61
|
rubyforge_project: crossroads_capistrano
|
81
|
-
rubygems_version: 1.
|
62
|
+
rubygems_version: 1.6.2
|
82
63
|
signing_key:
|
83
64
|
specification_version: 3
|
84
65
|
summary: Crossroads capistrano recipes
|
85
66
|
test_files: []
|
86
|
-
|