rebuy_deployment 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/rebuy_deployment/deploy.rb +0 -43
- metadata +3 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1ac9c91e08035e314cb309aab1d152b10e4a30edd6d2b49a65e91dfb2a9e55ad
|
4
|
+
data.tar.gz: 19daa6bb583ebe36fe4c7e0e30c42b7bdd6d3816abcb87c5291892e890db291a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0e8ad4b224c8037f9b7d9e4cd83116c5b74a6638ac6029de65c57c721fb96e524d723aa46986d3fe8d51ddf7e2f909e1ecc3346d5207909223c54080455767c
|
7
|
+
data.tar.gz: 504333109702d982110c57e2399d15d228ebc2a5d599c812591b3d6816ae393acf8ce4db9211e20a30208cccf6603031409670aef5c02e50e760f25eb8305386
|
@@ -1,7 +1,6 @@
|
|
1
1
|
Encoding.default_internal = "UTF-8"
|
2
2
|
Encoding.default_external = "UTF-8"
|
3
3
|
require 'mail'
|
4
|
-
require 'zk'
|
5
4
|
|
6
5
|
def prompt_if_unset(name, default = '')
|
7
6
|
unless exists? name
|
@@ -57,48 +56,6 @@ def get_git_log
|
|
57
56
|
end
|
58
57
|
end
|
59
58
|
|
60
|
-
def discover_hosts(application, type)
|
61
|
-
zk = ZK.new('zookeeper.dc1.rebuy:2181')
|
62
|
-
|
63
|
-
if not zk.exists?("/services/" + application)
|
64
|
-
raise "No server is registered for application " + application
|
65
|
-
end
|
66
|
-
|
67
|
-
servers = zk.children("/services/" + application)
|
68
|
-
|
69
|
-
if servers.size == 0
|
70
|
-
raise "No server is registered for application " + application
|
71
|
-
end
|
72
|
-
|
73
|
-
role_app = []
|
74
|
-
role_cron = []
|
75
|
-
role_web = []
|
76
|
-
|
77
|
-
servers.each do |server|
|
78
|
-
info = zk.get("/services/" + application + "/" + server)
|
79
|
-
roles = JSON.parse(info[0])['roles']
|
80
|
-
roles.each do |role|
|
81
|
-
case role.strip
|
82
|
-
when 'app'
|
83
|
-
role_app.push(server)
|
84
|
-
when 'cron'
|
85
|
-
role_cron.push(server)
|
86
|
-
when 'web'
|
87
|
-
role_web.push(server)
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
if type == :app
|
93
|
-
return role_app
|
94
|
-
elsif type == :web
|
95
|
-
return role_web
|
96
|
-
elsif type == :cron
|
97
|
-
return role_cron
|
98
|
-
end
|
99
|
-
return []
|
100
|
-
end
|
101
|
-
|
102
59
|
unless exists?(:stages)
|
103
60
|
set :stages, %w(production sandbox)
|
104
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rebuy_deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- reBuy reCommerce GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -66,34 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 2.4.4
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: zookeeper
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 1.4.11
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 1.4.11
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: zk
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.8.0
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 1.8.0
|
97
69
|
- !ruby/object:Gem::Dependency
|
98
70
|
name: json
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,7 +85,6 @@ email:
|
|
113
85
|
- df@rebuy.com
|
114
86
|
- u.pfefferlein@rebuy.com
|
115
87
|
- b.haeuser@rebuy.com
|
116
|
-
- it@rebuy.de
|
117
88
|
executables: []
|
118
89
|
extensions: []
|
119
90
|
extra_rdoc_files: []
|
@@ -139,8 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
110
|
- !ruby/object:Gem::Version
|
140
111
|
version: '0'
|
141
112
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.5.2.3
|
113
|
+
rubygems_version: 3.0.3
|
144
114
|
signing_key:
|
145
115
|
specification_version: 4
|
146
116
|
summary: Capistrano deployment for rebuy.de projects
|