vanagon 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/vanagon/common/pathname.rb +3 -1
- data/lib/vanagon/component.rb +5 -2
- data/lib/vanagon/component/dsl.rb +10 -3
- data/lib/vanagon/component/source/git.rb +3 -3
- data/lib/vanagon/component/source/http.rb +11 -19
- data/lib/vanagon/driver.rb +1 -1
- data/lib/vanagon/engine/base.rb +4 -3
- data/lib/vanagon/engine/docker.rb +1 -0
- data/lib/vanagon/engine/hardware.rb +1 -0
- data/lib/vanagon/engine/local.rb +1 -0
- data/lib/vanagon/engine/pooler.rb +1 -0
- data/lib/vanagon/platform.rb +6 -2
- data/lib/vanagon/platform/deb.rb +1 -1
- data/lib/vanagon/platform/dsl.rb +24 -0
- data/lib/vanagon/platform/osx.rb +2 -2
- data/lib/vanagon/platform/rpm.rb +1 -1
- data/lib/vanagon/platform/solaris_10.rb +1 -1
- data/lib/vanagon/platform/solaris_11.rb +1 -1
- data/lib/vanagon/platform/windows.rb +241 -0
- data/lib/vanagon/project.rb +7 -2
- data/lib/vanagon/utilities.rb +14 -5
- data/{templates → resources}/Makefile.erb +3 -3
- data/{templates → resources}/deb/changelog.erb +0 -0
- data/{templates → resources}/deb/conffiles.erb +0 -0
- data/{templates → resources}/deb/control.erb +0 -0
- data/{templates → resources}/deb/dirs.erb +0 -0
- data/{templates → resources}/deb/docs.erb +0 -0
- data/{templates → resources}/deb/install.erb +0 -0
- data/{templates → resources}/deb/postinst.erb +0 -0
- data/{templates → resources}/deb/postrm.erb +0 -0
- data/{templates → resources}/deb/preinst.erb +0 -0
- data/{templates → resources}/deb/prerm.erb +0 -0
- data/{templates → resources}/deb/rules.erb +2 -0
- data/{templates → resources}/osx/postinstall.erb +0 -0
- data/{templates → resources}/osx/preinstall.erb +0 -0
- data/{templates → resources}/osx/project-installer.xml.erb +0 -0
- data/{templates → resources}/rpm/project.spec.erb +2 -1
- data/{templates → resources}/solaris/10/depend.erb +0 -0
- data/{templates → resources}/solaris/10/pkginfo.erb +0 -0
- data/{templates → resources}/solaris/10/postinstall.erb +0 -0
- data/{templates → resources}/solaris/10/preinstall.erb +0 -0
- data/{templates → resources}/solaris/10/preremove.erb +0 -0
- data/{templates → resources}/solaris/10/proto.erb +0 -0
- data/{templates → resources}/solaris/11/p5m.erb +0 -0
- data/resources/windows/nuget/chocolateyInstall.ps1 +28 -0
- data/resources/windows/nuget/chocolateyUninstall.ps1 +24 -0
- data/resources/windows/nuget/project.nuspec.erb +31 -0
- data/resources/windows/wix/service.component.wxs.erb +55 -0
- data/spec/lib/vanagon/component/dsl_spec.rb +31 -1
- data/spec/lib/vanagon/component/source/git_spec.rb +14 -0
- data/spec/lib/vanagon/component/source/http_spec.rb +10 -1
- data/spec/lib/vanagon/engine/pooler_spec.rb +1 -1
- data/spec/lib/vanagon/platform/windows_spec.rb +43 -0
- data/spec/lib/vanagon/utilities_spec.rb +7 -0
- metadata +32 -25
@@ -117,6 +117,13 @@ describe "Vanagon::Utilities" do
|
|
117
117
|
expect(Vanagon::Utilities).to receive(:find_program_on_path).with('ssh').and_return('/tmp/ssh')
|
118
118
|
expect(Vanagon::Utilities.ssh_command).to include('-o UserKnownHostsFile=/dev/null')
|
119
119
|
end
|
120
|
+
|
121
|
+
it 'adds the correct flags to the command if VANAGON_SSH_AGENT is set' do
|
122
|
+
expect(Vanagon::Utilities).to receive(:find_program_on_path).with('ssh').and_return('/tmp/ssh')
|
123
|
+
ENV['VANAGON_SSH_AGENT'] = 'true'
|
124
|
+
expect(Vanagon::Utilities.ssh_command).to include('-o ForwardAgent=yes')
|
125
|
+
ENV['VANAGON_SSH_AGENT'] = nil
|
126
|
+
end
|
120
127
|
end
|
121
128
|
|
122
129
|
describe '#retry_with_timeout' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vanagon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -101,10 +101,38 @@ files:
|
|
101
101
|
- lib/vanagon/platform/rpm/wrl.rb
|
102
102
|
- lib/vanagon/platform/solaris_10.rb
|
103
103
|
- lib/vanagon/platform/solaris_11.rb
|
104
|
+
- lib/vanagon/platform/windows.rb
|
104
105
|
- lib/vanagon/project.rb
|
105
106
|
- lib/vanagon/project/dsl.rb
|
106
107
|
- lib/vanagon/utilities.rb
|
107
108
|
- lib/vanagon/utilities/shell_utilities.rb
|
109
|
+
- resources/Makefile.erb
|
110
|
+
- resources/deb/changelog.erb
|
111
|
+
- resources/deb/conffiles.erb
|
112
|
+
- resources/deb/control.erb
|
113
|
+
- resources/deb/dirs.erb
|
114
|
+
- resources/deb/docs.erb
|
115
|
+
- resources/deb/install.erb
|
116
|
+
- resources/deb/postinst.erb
|
117
|
+
- resources/deb/postrm.erb
|
118
|
+
- resources/deb/preinst.erb
|
119
|
+
- resources/deb/prerm.erb
|
120
|
+
- resources/deb/rules.erb
|
121
|
+
- resources/osx/postinstall.erb
|
122
|
+
- resources/osx/preinstall.erb
|
123
|
+
- resources/osx/project-installer.xml.erb
|
124
|
+
- resources/rpm/project.spec.erb
|
125
|
+
- resources/solaris/10/depend.erb
|
126
|
+
- resources/solaris/10/pkginfo.erb
|
127
|
+
- resources/solaris/10/postinstall.erb
|
128
|
+
- resources/solaris/10/preinstall.erb
|
129
|
+
- resources/solaris/10/preremove.erb
|
130
|
+
- resources/solaris/10/proto.erb
|
131
|
+
- resources/solaris/11/p5m.erb
|
132
|
+
- resources/windows/nuget/chocolateyInstall.ps1
|
133
|
+
- resources/windows/nuget/chocolateyUninstall.ps1
|
134
|
+
- resources/windows/nuget/project.nuspec.erb
|
135
|
+
- resources/windows/wix/service.component.wxs.erb
|
108
136
|
- spec/fixures/component/invalid-test-fixture.json
|
109
137
|
- spec/fixures/component/mcollective.service
|
110
138
|
- spec/fixures/component/test-fixture.json
|
@@ -127,34 +155,12 @@ files:
|
|
127
155
|
- spec/lib/vanagon/platform/rpm/aix_spec.rb
|
128
156
|
- spec/lib/vanagon/platform/rpm_spec.rb
|
129
157
|
- spec/lib/vanagon/platform/solaris_11_spec.rb
|
158
|
+
- spec/lib/vanagon/platform/windows_spec.rb
|
130
159
|
- spec/lib/vanagon/platform_spec.rb
|
131
160
|
- spec/lib/vanagon/project/dsl_spec.rb
|
132
161
|
- spec/lib/vanagon/project_spec.rb
|
133
162
|
- spec/lib/vanagon/utilities/shell_utilities_spec.rb
|
134
163
|
- spec/lib/vanagon/utilities_spec.rb
|
135
|
-
- templates/Makefile.erb
|
136
|
-
- templates/deb/changelog.erb
|
137
|
-
- templates/deb/conffiles.erb
|
138
|
-
- templates/deb/control.erb
|
139
|
-
- templates/deb/dirs.erb
|
140
|
-
- templates/deb/docs.erb
|
141
|
-
- templates/deb/install.erb
|
142
|
-
- templates/deb/postinst.erb
|
143
|
-
- templates/deb/postrm.erb
|
144
|
-
- templates/deb/preinst.erb
|
145
|
-
- templates/deb/prerm.erb
|
146
|
-
- templates/deb/rules.erb
|
147
|
-
- templates/osx/postinstall.erb
|
148
|
-
- templates/osx/preinstall.erb
|
149
|
-
- templates/osx/project-installer.xml.erb
|
150
|
-
- templates/rpm/project.spec.erb
|
151
|
-
- templates/solaris/10/depend.erb
|
152
|
-
- templates/solaris/10/pkginfo.erb
|
153
|
-
- templates/solaris/10/postinstall.erb
|
154
|
-
- templates/solaris/10/preinstall.erb
|
155
|
-
- templates/solaris/10/preremove.erb
|
156
|
-
- templates/solaris/10/proto.erb
|
157
|
-
- templates/solaris/11/p5m.erb
|
158
164
|
homepage: http://github.com/puppetlabs/vanagon
|
159
165
|
licenses:
|
160
166
|
- Apache-2.0
|
@@ -199,6 +205,7 @@ test_files:
|
|
199
205
|
- spec/lib/vanagon/platform/rpm/aix_spec.rb
|
200
206
|
- spec/lib/vanagon/platform/rpm_spec.rb
|
201
207
|
- spec/lib/vanagon/platform/solaris_11_spec.rb
|
208
|
+
- spec/lib/vanagon/platform/windows_spec.rb
|
202
209
|
- spec/lib/vanagon/platform_spec.rb
|
203
210
|
- spec/lib/vanagon/project/dsl_spec.rb
|
204
211
|
- spec/lib/vanagon/project_spec.rb
|