capistrano-rack 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.md +1 -1
- data/capistrano-rack.gemspec +0 -1
- data/lib/capistrano/rack.rb +6 -4
- data/lib/capistrano/rack/version.rb +1 -1
- metadata +19 -20
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NjdlOGJhYTQyMDgyOTlkYzJjODg4NWIxNjUyZmQ0ZGQxMDQ2OTlhYQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZGUyZGE4OWUyZWM5MDhjNzcwZmQ4MGViN2EzZmM2ZGQ2Nzc2YjQ1Nw==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YmNmNjA0NGM4Y2I5MGU0ODhmNzU4ODU1ZGIwYzI3ZWE4ZGMwYTY4ZjU3ZTMy
|
10
|
+
MWU1ZGNmYjgzYTk4ZWUzNWJkN2VkYTE0ZGUxNjQ3ODQ2ZDNkMDY2ZmRkMTYz
|
11
|
+
MTNiNjIwZGE5ZmM0MWNkMTYxNzViZWJmN2YzMzdlNmRlYWVlMGE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MDc1ZGE5ZjY0NTkzODQ0NTM2OGMwZjBmNTFkMzdmZmI2YzA0OTE2MTJmZjNm
|
14
|
+
NWZiOTkyODk5Yjk2YTZiZWNmMzVjMzI2MWVjMWJkNDAwMWMxMWExNTRjODc5
|
15
|
+
MWRkZjUyNjc3YzIxYTQyODQwOTVkY2Q1MjNkN2VmMWY5ZTVmMGE=
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# capistrano-rack [![Build Status](https://travis-ci.org/amrfaissal/capistrano-rack.svg?branch=master)](https://travis-ci.org/amrfaissal/capistrano-rack)
|
1
|
+
# capistrano-rack [![Build Status](https://travis-ci.org/amrfaissal/capistrano-rack.svg?branch=master)](https://travis-ci.org/amrfaissal/capistrano-rack) [![Gem Version](https://badge.fury.io/rb/capistrano-rack.svg)](https://badge.fury.io/rb/capistrano-rack)
|
2
2
|
|
3
3
|
Capistrano recipe to be served with Rackspace
|
4
4
|
|
data/capistrano-rack.gemspec
CHANGED
@@ -7,7 +7,6 @@ require 'capistrano/rack/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = "capistrano-rack"
|
9
9
|
spec.version = Capistrano::Rack::VERSION
|
10
|
-
spec.version = "#{spec.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
|
11
10
|
spec.authors = ["Faissal Elamraoui"]
|
12
11
|
spec.email = ["amr.faissal@gmail.com"]
|
13
12
|
|
data/lib/capistrano/rack.rb
CHANGED
@@ -37,7 +37,7 @@ end
|
|
37
37
|
|
38
38
|
module Capistrano
|
39
39
|
module Rack
|
40
|
-
def rackspace_servers(roles=
|
40
|
+
def rackspace_servers(roles=nil, regex_str='', addr_type=:private, config_file=nil, connection_options={})
|
41
41
|
@compute_service = Fog::Compute.new(RackspaceOptions.get(config_file)
|
42
42
|
.merge({
|
43
43
|
:provider => 'Rackspace',
|
@@ -50,10 +50,11 @@ module Capistrano
|
|
50
50
|
.flat_map { |s| s["addresses"][addr_type.to_s] }
|
51
51
|
.select { |iface| iface['version'] == 4 }
|
52
52
|
.map { |iface| iface['addr'] }
|
53
|
-
.each { |server_addr| server
|
53
|
+
.each { |server_addr| server server_addr,
|
54
|
+
{ :roles => (roles || %w{app}) } }
|
54
55
|
end
|
55
56
|
|
56
|
-
def rackspace_autoscale(roles=
|
57
|
+
def rackspace_autoscale(roles=nil, group_name='', addr_type=:private, config_file=nil, connection_options={})
|
57
58
|
rackspace_options = RackspaceOptions.get(config_file)
|
58
59
|
|
59
60
|
if !connection_options.empty? then
|
@@ -73,7 +74,8 @@ module Capistrano
|
|
73
74
|
.flat_map { |h| h.addresses[addr_type.to_s] }
|
74
75
|
.select { |iface| iface['version'] == 4 }
|
75
76
|
.map { |iface| iface['addr'] }
|
76
|
-
.each { |server_addr| server
|
77
|
+
.each { |server_addr| server server_addr,
|
78
|
+
{ :roles => (roles || %w{app}) } }
|
77
79
|
end
|
78
80
|
|
79
81
|
end
|
metadata
CHANGED
@@ -1,89 +1,89 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Faissal Elamraoui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.4'
|
20
|
-
- -
|
20
|
+
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 3.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '3.4'
|
30
|
-
- -
|
30
|
+
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 3.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: fog
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ~>
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '1.35'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - ~>
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.35'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '1.10'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ~>
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '1.10'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rake
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ~>
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '10.0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '10.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rspec
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ~>
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '3.3'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - ~>
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '3.3'
|
89
89
|
description: Capistrano recipe to be served with Rackspace
|
@@ -93,8 +93,8 @@ executables: []
|
|
93
93
|
extensions: []
|
94
94
|
extra_rdoc_files: []
|
95
95
|
files:
|
96
|
-
-
|
97
|
-
-
|
96
|
+
- .gitignore
|
97
|
+
- .travis.yml
|
98
98
|
- CODE_OF_CONDUCT.md
|
99
99
|
- Gemfile
|
100
100
|
- Gemfile.lock
|
@@ -116,19 +116,18 @@ require_paths:
|
|
116
116
|
- lib
|
117
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
|
-
- -
|
119
|
+
- - ! '>='
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- -
|
124
|
+
- - ! '>='
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.4.5
|
129
|
+
rubygems_version: 2.4.5
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Capistrano with Rackspace
|
133
133
|
test_files: []
|
134
|
-
has_rdoc:
|