nomade 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/nomade/deployer.rb +3 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 158ef957259ed3df2c6de748751d4e3561a21fc0
|
4
|
+
data.tar.gz: 06101a19896eba831d43a09aa6de5ac03b49d8ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5c2a3828cfaab475a92deea886c11088d55a8ad5560279964bdbf339c8f3835e6c6b6a62f31a28ae4e5a979b1ff75eaf6bfb519896a3660ecd4ea4d792dc118
|
7
|
+
data.tar.gz: c2a1b9d62c7a98c1e010ec63714314958c4f269cd2c802063da5191e5c8b8024a651e76bdfae2290acf59b251d339438c735cc5b40d6a176f144ba74a85a78f8
|
data/lib/nomade/deployer.rb
CHANGED
@@ -5,7 +5,8 @@ module Nomade
|
|
5
5
|
@evaluation_id = nil
|
6
6
|
@deployment_id = nil
|
7
7
|
@timeout = Time.now.utc + 60 * 9 # minutes
|
8
|
-
@
|
8
|
+
@nomad_endpoint = nomad_endpoint
|
9
|
+
@http = Nomade::Http.new(@nomad_endpoint)
|
9
10
|
end
|
10
11
|
|
11
12
|
def deploy!
|
@@ -33,6 +34,7 @@ module Nomade
|
|
33
34
|
|
34
35
|
def deploy
|
35
36
|
Nomade.logger.info "Deploying #{@nomad_job.job_name} (#{@nomad_job.job_type}) with #{@nomad_job.image_name_and_version}"
|
37
|
+
Nomade.logger.info "URL: #{@nomad_endpoint}/ui/jobs/#{@nomad_job.job_name}"
|
36
38
|
|
37
39
|
Nomade.logger.info "Checking cluster for connectivity and capacity.."
|
38
40
|
@http.plan_job(@nomad_job)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nomade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Grubbe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yell
|
@@ -71,7 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
|
74
|
+
rubyforge_project:
|
75
|
+
rubygems_version: 2.6.11
|
75
76
|
signing_key:
|
76
77
|
specification_version: 4
|
77
78
|
summary: Gem that deploys nomad jobs
|