vagrant-adbinfo 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/command.rb +6 -0
- data/vagrant-adbinfo.gemspec +1 -1
- data/vagrant-adbinfo.spec +104 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e0da729453e9f86b2c74db17ed49e2433669f0f
|
4
|
+
data.tar.gz: 1f296486e607bfbefcfb33598609a67c91eba845
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a3c398ea088fd5ebb9c4468713a80d858cfad007e1cd30a72ddfa189f626df754a063da32b456d0c7451bff55b668de26350d5084c32c565fdae737c7c3e3ae
|
7
|
+
data.tar.gz: c2a35e90c3cbbf183fdda9368088b4e431d8fbc3ce10b48d54b0d87ea9ec59100dc951acaec8be414a317f66036816ad610906621aac41923cc2251451213b25
|
data/lib/command.rb
CHANGED
@@ -51,6 +51,12 @@ 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
|
+
command2 = "ls /opt/adb/cert-gen.sh && sudo rm /etc/docker/ca.pem && sudo systemctl restart docker"
|
58
|
+
machine.communicate.execute(command2)
|
59
|
+
end
|
54
60
|
|
55
61
|
# Hard Code the Docker port because it is fixed on the VM
|
56
62
|
# This also makes it easier for the plugin to be cross-provider
|
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.7'
|
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
|
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# Generated from vagrant-adbinfo-0.0.4.gem by gem2rpm -*- rpm-spec -*-
|
2
|
+
%global vagrant_plugin_name vagrant-adbinfo
|
3
|
+
|
4
|
+
Name: %{vagrant_plugin_name}
|
5
|
+
Version: 0.0.7
|
6
|
+
Release: 1%{?dist}
|
7
|
+
Summary: Vagrant plugin that provides the IP address:port and TLS certificate file location for a Docker daemon
|
8
|
+
Group: Development/Languages
|
9
|
+
License: GPLv2
|
10
|
+
URL: https://github.com/bexelbie/vagrant-adbinfo
|
11
|
+
Source0: https://rubygems.org/gems/%{vagrant_plugin_name}-%{version}.gem
|
12
|
+
Requires(posttrans): vagrant
|
13
|
+
Requires(preun): vagrant
|
14
|
+
Requires: vagrant
|
15
|
+
BuildRequires: ruby(release)
|
16
|
+
BuildRequires: rubygems-devel >= 1.3.6
|
17
|
+
BuildRequires: ruby
|
18
|
+
BuildRequires: vagrant
|
19
|
+
BuildArch: noarch
|
20
|
+
Provides: vagrant(%{vagrant_plugin_name}) = %{version}
|
21
|
+
|
22
|
+
%description
|
23
|
+
Vagrant plugin that provides the IP address:port and TLS certificate file
|
24
|
+
location for a Docker daemon.
|
25
|
+
|
26
|
+
%package doc
|
27
|
+
Summary: Documentation for %{name}
|
28
|
+
Group: Documentation
|
29
|
+
Requires: %{name} = %{version}-%{release}
|
30
|
+
BuildArch: noarch
|
31
|
+
|
32
|
+
%description doc
|
33
|
+
Documentation for %{name}.
|
34
|
+
|
35
|
+
%prep
|
36
|
+
gem unpack %{SOURCE0}
|
37
|
+
|
38
|
+
%setup -q -D -T -n %{vagrant_plugin_name}-%{version}
|
39
|
+
|
40
|
+
gem spec %{SOURCE0} -l --ruby > %{vagrant_plugin_name}.gemspec
|
41
|
+
|
42
|
+
%build
|
43
|
+
# Create the gem as gem install only works on a gem file
|
44
|
+
gem build %{vagrant_plugin_name}.gemspec
|
45
|
+
|
46
|
+
# %%vagrant_plugin_install compiles any C extensions and installs the gem into ./%%gem_dir
|
47
|
+
# by default, so that we can move it into the buildroot in %%install
|
48
|
+
%vagrant_plugin_install
|
49
|
+
|
50
|
+
%install
|
51
|
+
mkdir -p %{buildroot}%{vagrant_plugin_dir}
|
52
|
+
cp -a .%{vagrant_plugin_dir}/* \
|
53
|
+
%{buildroot}%{vagrant_plugin_dir}/
|
54
|
+
|
55
|
+
# Run the test suite
|
56
|
+
%check
|
57
|
+
pushd .%{vagrant_plugin_instdir}
|
58
|
+
|
59
|
+
popd
|
60
|
+
|
61
|
+
%posttrans
|
62
|
+
%vagrant_plugin_register %{vagrant_plugin_name}
|
63
|
+
|
64
|
+
%preun
|
65
|
+
%vagrant_plugin_unregister %{vagrant_plugin_name}
|
66
|
+
|
67
|
+
%files
|
68
|
+
%dir %{vagrant_plugin_instdir}
|
69
|
+
%exclude %{vagrant_plugin_instdir}/.gitignore
|
70
|
+
%{vagrant_plugin_libdir}
|
71
|
+
%exclude %{vagrant_plugin_cache}
|
72
|
+
%{vagrant_plugin_spec}
|
73
|
+
|
74
|
+
%files doc
|
75
|
+
%doc %{vagrant_plugin_docdir}
|
76
|
+
%{vagrant_plugin_instdir}/Gemfile
|
77
|
+
%doc %{vagrant_plugin_instdir}/README.md
|
78
|
+
%{vagrant_plugin_instdir}/Rakefile
|
79
|
+
%{vagrant_plugin_instdir}/Vagrantfile
|
80
|
+
%{vagrant_plugin_instdir}/CONTRIBUTING.md
|
81
|
+
%{vagrant_plugin_instdir}/LICENSE
|
82
|
+
%{vagrant_plugin_instdir}/MAINTAINERS
|
83
|
+
%{vagrant_plugin_instdir}/vagrant-adbinfo.gemspec
|
84
|
+
|
85
|
+
%changelog
|
86
|
+
* Tue Nov 24 2015 Navid Shaikh - 0.0.7-1
|
87
|
+
- Fixes adbinfo#40: Handle private networking in ADB for different providers
|
88
|
+
- Bumps the plugin version to 0.0.7
|
89
|
+
|
90
|
+
* Fri Nov 20 2015 Navid Shaikh - 0.0.6-1
|
91
|
+
- Finds IP address of the guest provisioned via private networking
|
92
|
+
- Fixes typo in eval command of adbinfo output
|
93
|
+
- Adds License, Contributing and Maintainers files
|
94
|
+
- Adds Quick Start and Contact us sections
|
95
|
+
|
96
|
+
* Thu Nov 19 2015 Navid Shaikh - 0.0.5-2
|
97
|
+
- Removes shadow-utils from Requires
|
98
|
+
|
99
|
+
* Tue Nov 17 2015 Navid Shaikh - 0.0.5-1
|
100
|
+
- vagrant-adbinfo#17: adbinfo format should be windows compatible
|
101
|
+
- vagrant-adbinfo#18: adbinfo should be possible to evaluate in shell
|
102
|
+
|
103
|
+
* Thu Nov 12 2015 Navid Shaikh - 0.0.4-1
|
104
|
+
- Initial package
|
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.7
|
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-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- lib/command.rb
|
59
59
|
- lib/vagrant-adbinfo.rb
|
60
60
|
- vagrant-adbinfo.gemspec
|
61
|
+
- vagrant-adbinfo.spec
|
61
62
|
homepage: https://github.com/bexelbie/vagrant-adbinfo
|
62
63
|
licenses: []
|
63
64
|
metadata: {}
|