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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd7231f3cb01018dc92de8bf131f05c055db20f9
4
- data.tar.gz: 6167bd587d17b34874b1e257626c53d6c7e9aca5
3
+ metadata.gz: 69ba917d086339736dfd37c2dfcd19f99203119b
4
+ data.tar.gz: f18817b21274c028ea9cd345ccb192bb116d8e09
5
5
  SHA512:
6
- metadata.gz: d64be6134bd5710b96f9df8093e04dd467acf3c91b4d8069af2363ac5d1a2366b4b1cdbebceb2f55c9fde3dcc34528b6ed2d294c49cce9f04ca90fbd8c27a9df
7
- data.tar.gz: fc1c55b09b091e53e52ec5aac14b0389ef1a222249ebe50164a218791eceb0e5362f36a40076cf6bf91ba60541e11fbaf0bb0f2c98ae6a834717d78466bc8968
6
+ metadata.gz: 2ffe2d7f944214ec39cb59c89ddd2053b4b25137c3b1dd8de8c39f1ad8a57373d0a9ae83941afc6249070cb59e613911b969973137c3356af71957a87057c8a0
7
+ data.tar.gz: 249e2cf2a6ddda3bf103505136fe8591fff78dabed32f6da4d8a7833bcf64b1317fbb0360b86b31d994b7b62a57c36d87ae9e7ac2c43f5990d9c950331032c49
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  Gemfile.lock
2
2
  .vagrant
3
+ .bundle
3
4
  pkg
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'vagrant-adbinfo'
3
- spec.version = '0.0.8'
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.8
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.8
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-24 00:00:00.000000000 Z
12
+ date: 2015-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler