vagrant-adbinfo 0.0.7 → 0.0.8

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: 5e0da729453e9f86b2c74db17ed49e2433669f0f
4
- data.tar.gz: 1f296486e607bfbefcfb33598609a67c91eba845
3
+ metadata.gz: dd7231f3cb01018dc92de8bf131f05c055db20f9
4
+ data.tar.gz: 6167bd587d17b34874b1e257626c53d6c7e9aca5
5
5
  SHA512:
6
- metadata.gz: 4a3c398ea088fd5ebb9c4468713a80d858cfad007e1cd30a72ddfa189f626df754a063da32b456d0c7451bff55b668de26350d5084c32c565fdae737c7c3e3ae
7
- data.tar.gz: c2a35e90c3cbbf183fdda9368088b4e431d8fbc3ce10b48d54b0d87ea9ec59100dc951acaec8be414a317f66036816ad610906621aac41923cc2251451213b25
6
+ metadata.gz: d64be6134bd5710b96f9df8093e04dd467acf3c91b4d8069af2363ac5d1a2366b4b1cdbebceb2f55c9fde3dcc34528b6ed2d294c49cce9f04ca90fbd8c27a9df
7
+ data.tar.gz: fc1c55b09b091e53e52ec5aac14b0389ef1a222249ebe50164a218791eceb0e5362f36a40076cf6bf91ba60541e11fbaf0bb0f2c98ae6a834717d78466bc8968
data/lib/command.rb CHANGED
@@ -54,7 +54,8 @@ module VagrantPlugins
54
54
 
55
55
  # Regenerate the certs and restart docker daemon in case of the new ADB box and for VirtualBox provider
56
56
  if machine.provider_name == :virtualbox then
57
- command2 = "ls /opt/adb/cert-gen.sh && sudo rm /etc/docker/ca.pem && sudo systemctl restart docker"
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)"
58
59
  machine.communicate.execute(command2)
59
60
  end
60
61
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'vagrant-adbinfo'
3
- spec.version = '0.0.7'
3
+ spec.version = '0.0.8'
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.7
5
+ Version: 0.0.8
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
@@ -81,8 +81,13 @@ popd
81
81
  %{vagrant_plugin_instdir}/LICENSE
82
82
  %{vagrant_plugin_instdir}/MAINTAINERS
83
83
  %{vagrant_plugin_instdir}/vagrant-adbinfo.gemspec
84
+ %{vagrant_plugin_instdir}/vagrant-adbinfo.spec
84
85
 
85
86
  %changelog
87
+ * Tue Nov 24 2015 Navid Shaikh - 0.0.8-1
88
+ - Fixes cert-generation script existence check
89
+ - Bumps the plugin version to 0.0.8
90
+
86
91
  * Tue Nov 24 2015 Navid Shaikh - 0.0.7-1
87
92
  - Fixes adbinfo#40: Handle private networking in ADB for different providers
88
93
  - Bumps the plugin version to 0.0.7
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Exelbierd