onceover 3.0.8 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/controlrepo.gemspec +1 -1
- data/lib/onceover/controlrepo.rb +8 -3
- data/lib/onceover/rake_tasks.rb +8 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27913d7150232a117cd229899972ddb6944a9376
|
|
4
|
+
data.tar.gz: 2162e9f5ad9facbd371abeb1e9f5cf325c1a9456
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac49810d82e072f6a9004df8b82588ff69bb06ed941eb3b530524252893169da7c498dd7bf3fde09bcb98845ccb0dd0811393113e37d0119c174fedebf630beb
|
|
7
|
+
data.tar.gz: b2ec3e2cbe178cb3ab4554fe880027adb0880ac0d362f1e3a4afb12d2c4a73f1486654aa84445bce6f2cabedef03f52c3e75edc051b31a296689225c4002c377
|
data/controlrepo.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "onceover"
|
|
6
|
-
s.version = "3.0.
|
|
6
|
+
s.version = "3.0.9"
|
|
7
7
|
s.authors = ["Dylan Ratcliffe"]
|
|
8
8
|
s.email = ["dylan.ratcliffe@puppet.com"]
|
|
9
9
|
s.homepage = "https://github.com/dylanratcliffe/onceover"
|
data/lib/onceover/controlrepo.rb
CHANGED
|
@@ -419,14 +419,19 @@ class Onceover
|
|
|
419
419
|
platform = Onceover::Beaker.facts_to_platform(fact_set)
|
|
420
420
|
|
|
421
421
|
logger.debug "Querying hashicorp API for Vagrant box that matches #{boxname}"
|
|
422
|
-
|
|
422
|
+
|
|
423
|
+
uri = URI("https://atlas.hashicorp.com:443/api/v1/box/#{boxname}")
|
|
424
|
+
request = Net::HTTP.new(uri.host, uri.port)
|
|
425
|
+
request.use_ssl = true
|
|
426
|
+
response = request.get(uri)
|
|
427
|
+
|
|
423
428
|
url = 'URL goes here'
|
|
424
429
|
|
|
425
|
-
if response
|
|
430
|
+
if response.code == "404"
|
|
426
431
|
comment_out = true
|
|
427
432
|
else
|
|
428
433
|
comment_out = false
|
|
429
|
-
box_info = JSON.parse(response)
|
|
434
|
+
box_info = JSON.parse(response.body)
|
|
430
435
|
box_info['current_version']['providers'].each do |provider|
|
|
431
436
|
if provider['name'] == 'virtualbox'
|
|
432
437
|
url = provider['original_url']
|
data/lib/onceover/rake_tasks.rb
CHANGED
|
@@ -51,14 +51,19 @@ task :generate_nodesets do
|
|
|
51
51
|
node_name = File.basename(repo.facts_files[repo.facts.index(fact_set)],'.json')
|
|
52
52
|
boxname = Onceover::Beaker.facts_to_vagrant_box(fact_set)
|
|
53
53
|
platform = Onceover::Beaker.facts_to_platform(fact_set)
|
|
54
|
-
|
|
54
|
+
|
|
55
|
+
uri = URI("https://atlas.hashicorp.com:443/api/v1/box/#{boxname}")
|
|
56
|
+
request = Net::HTTP.new(uri.host, uri.port)
|
|
57
|
+
request.use_ssl = true
|
|
58
|
+
response = request.get(uri)
|
|
59
|
+
|
|
55
60
|
url = 'URL goes here'
|
|
56
61
|
|
|
57
|
-
if response
|
|
62
|
+
if response.code == "404"
|
|
58
63
|
comment_out = true
|
|
59
64
|
else
|
|
60
65
|
comment_out = false
|
|
61
|
-
box_info = JSON.parse(response)
|
|
66
|
+
box_info = JSON.parse(response.body)
|
|
62
67
|
box_info['current_version']['providers'].each do |provider|
|
|
63
68
|
if provider['name'] == 'virtualbox'
|
|
64
69
|
url = provider['original_url']
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onceover
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dylan Ratcliffe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -340,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
340
340
|
version: '0'
|
|
341
341
|
requirements: []
|
|
342
342
|
rubyforge_project:
|
|
343
|
-
rubygems_version: 2.5.
|
|
343
|
+
rubygems_version: 2.5.2
|
|
344
344
|
signing_key:
|
|
345
345
|
specification_version: 4
|
|
346
346
|
summary: Testing tools for Puppet controlrepos
|