jump_cloud 0.2.0.pre.rc5 → 0.2.0.pre.rc6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jump_cloud.rb +2 -1
- data/lib/jump_cloud/agent.rb +12 -3
- data/lib/jump_cloud/middleware.rb +4 -4
- data/lib/jump_cloud/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d7da8bad614b0ee3b5fc3fca9c6b973abe08b5a
|
4
|
+
data.tar.gz: 9aee740533a82ba087c76a2026087bb58de6701d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f9e8511e8b27322b7f8c7676f3f6b5b74f4f1b57e2a1077e59e654684ee925670d171025b95eb6d41543e3bca613e53b9f17ded849353714c671cd0ca88162
|
7
|
+
data.tar.gz: 63183d9e255ef9f1accdb046d7dbba5d824b1bc88d2879c2cce9e3d7474b5ef0f46d2dd526fde2dc985ceba642e8745259d394ef13a450627848c1e9cc48536d
|
data/lib/jump_cloud.rb
CHANGED
data/lib/jump_cloud/agent.rb
CHANGED
@@ -3,14 +3,23 @@ module JumpCloud
|
|
3
3
|
|
4
4
|
class << self
|
5
5
|
def install(fetch: :curl)
|
6
|
+
puts "Installing JumpCloud agent"
|
6
7
|
if system(install_cmd(fetch))
|
7
|
-
|
8
|
+
JumpCloud.logger.info "Agent installed"
|
8
9
|
else
|
9
|
-
|
10
|
-
|
10
|
+
JumpCloud.logger.warn "Agent not installed. Check /opt/jc/jcagentInstall.log"
|
11
|
+
JumpCloud.logger.info `cat /opt/jc/jcagentInstall.log`
|
11
12
|
end
|
12
13
|
end
|
13
14
|
|
15
|
+
def wait_for_init
|
16
|
+
30.times do
|
17
|
+
return true unless config(cache: false)['systemKey'].nil?
|
18
|
+
sleep 5
|
19
|
+
end
|
20
|
+
return false
|
21
|
+
end
|
22
|
+
|
14
23
|
def system_id
|
15
24
|
config['systemKey']
|
16
25
|
end
|
@@ -21,7 +21,7 @@ module JumpCloud
|
|
21
21
|
|
22
22
|
def on_complete(env)
|
23
23
|
super.tap do
|
24
|
-
|
24
|
+
JumpCloud.logger.info "status: #{env.status}"
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -52,13 +52,13 @@ module JumpCloud
|
|
52
52
|
|
53
53
|
# @private
|
54
54
|
def call(env)
|
55
|
-
|
55
|
+
JumpCloud.logger.debug "#{env.method}: #{env.url.to_s}"
|
56
56
|
add_header(env[:request_headers])
|
57
57
|
unless env.method == :get
|
58
58
|
env[:body] = encode env[:body] unless env[:body].respond_to?(:to_str)
|
59
59
|
end
|
60
|
-
|
61
|
-
|
60
|
+
JumpCloud.logger.debug "params: #{env.params}"
|
61
|
+
JumpCloud.logger.debug "body: #{env.body}"
|
62
62
|
@app.call(env)
|
63
63
|
end
|
64
64
|
|
data/lib/jump_cloud/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jump_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.pre.
|
4
|
+
version: 0.2.0.pre.rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Stevens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: her
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.10.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.10.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry-byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|