vagrant-adbinfo 0.0.8 → 0.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/.gitignore +1 -0
- data/lib/command.rb +8 -7
- data/vagrant-adbinfo.gemspec +1 -1
- data/vagrant-adbinfo.spec +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69ba917d086339736dfd37c2dfcd19f99203119b
|
|
4
|
+
data.tar.gz: f18817b21274c028ea9cd345ccb192bb116d8e09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ffe2d7f944214ec39cb59c89ddd2053b4b25137c3b1dd8de8c39f1ad8a57373d0a9ae83941afc6249070cb59e613911b969973137c3356af71957a87057c8a0
|
|
7
|
+
data.tar.gz: 249e2cf2a6ddda3bf103505136fe8591fff78dabed32f6da4d8a7833bcf64b1317fbb0360b86b31d994b7b62a57c36d87ae9e7ac2c43f5990d9c950331032c49
|
data/.gitignore
CHANGED
data/lib/command.rb
CHANGED
|
@@ -51,13 +51,6 @@ module VagrantPlugins
|
|
|
51
51
|
machine.communicate.execute(command) do |type, data|
|
|
52
52
|
guest_ip << data.chomp if type == :stdout
|
|
53
53
|
end
|
|
54
|
-
|
|
55
|
-
# Regenerate the certs and restart docker daemon in case of the new ADB box and for VirtualBox provider
|
|
56
|
-
if machine.provider_name == :virtualbox then
|
|
57
|
-
# `test` checks if the file exists, and then regenerates the certs and restart the docker daemon, else do nothing.
|
|
58
|
-
command2 = "test ! -f /opt/adb/cert-gen.sh || (sudo rm /etc/docker/ca.pem && sudo systemctl restart docker)"
|
|
59
|
-
machine.communicate.execute(command2)
|
|
60
|
-
end
|
|
61
54
|
|
|
62
55
|
# Hard Code the Docker port because it is fixed on the VM
|
|
63
56
|
# This also makes it easier for the plugin to be cross-provider
|
|
@@ -65,6 +58,14 @@ module VagrantPlugins
|
|
|
65
58
|
|
|
66
59
|
# First, get the TLS Certificates, if needed
|
|
67
60
|
if !File.directory?(File.expand_path(".docker", secrets_path)) then
|
|
61
|
+
|
|
62
|
+
# Regenerate the certs and restart docker daemon in case of the new ADB box and for VirtualBox provider
|
|
63
|
+
if machine.provider_name == :virtualbox then
|
|
64
|
+
# `test` checks if the file exists, and then regenerates the certs and restart the docker daemon, else do nothing.
|
|
65
|
+
command2 = "test ! -f /opt/adb/cert-gen.sh || (sudo rm /etc/docker/ca.pem && sudo systemctl restart docker)"
|
|
66
|
+
machine.communicate.execute(command2)
|
|
67
|
+
end
|
|
68
|
+
|
|
68
69
|
if !OS.windows? then
|
|
69
70
|
hprivate_key_path = machine.ssh_info[:private_key_path][0]
|
|
70
71
|
# scp over the client side certs from guest to host machine
|
data/vagrant-adbinfo.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'vagrant-adbinfo'
|
|
3
|
-
spec.version = '0.0.
|
|
3
|
+
spec.version = '0.0.9'
|
|
4
4
|
spec.homepage = 'https://github.com/bexelbie/vagrant-adbinfo'
|
|
5
5
|
spec.summary = 'Vagrant plugin that provides the IP address:port and tls certificate file location for a docker daemon'
|
|
6
6
|
|
data/vagrant-adbinfo.spec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
%global vagrant_plugin_name vagrant-adbinfo
|
|
3
3
|
|
|
4
4
|
Name: %{vagrant_plugin_name}
|
|
5
|
-
Version: 0.0.
|
|
5
|
+
Version: 0.0.9
|
|
6
6
|
Release: 1%{?dist}
|
|
7
7
|
Summary: Vagrant plugin that provides the IP address:port and TLS certificate file location for a Docker daemon
|
|
8
8
|
Group: Development/Languages
|
|
@@ -84,6 +84,11 @@ popd
|
|
|
84
84
|
%{vagrant_plugin_instdir}/vagrant-adbinfo.spec
|
|
85
85
|
|
|
86
86
|
%changelog
|
|
87
|
+
* Wed Nov 25 2015 Brian Exelbierd - 0.0.9-1
|
|
88
|
+
- Fixes cert-generation script existence check, a bug was found where the cert
|
|
89
|
+
was regenerated to often
|
|
90
|
+
- Bumps the plugin version to 0.0.9
|
|
91
|
+
|
|
87
92
|
* Tue Nov 24 2015 Navid Shaikh - 0.0.8-1
|
|
88
93
|
- Fixes cert-generation script existence check
|
|
89
94
|
- Bumps the plugin version to 0.0.8
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-adbinfo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Exelbierd
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-11-
|
|
12
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|