vagrant-pe_build 0.15.5 → 0.15.6
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/CHANGELOG +9 -0
- data/lib/pe_build/cap/stage_installer/posix.rb +5 -2
- data/lib/pe_build/on_machine.rb +19 -2
- data/lib/pe_build/version.rb +1 -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: f637c7f7f078263eabf2adf02ca977543dcd2c76
|
4
|
+
data.tar.gz: 63c05324c683579bf4811a964748a99e8afd4a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a7f289f6b116692389a6824054361799d0bef1cd5bdc460cc6063eca9f01ffaa8f6b4ba37e5a1faa98cc9064557108991423888252cdab185ba15ebaa263c8
|
7
|
+
data.tar.gz: bafcb685655e6411c2b87dc1b1ee5ba8cc912bd6f0b68ab21c4ff7baca2296c39b97a46712c8bcb67eadd533092473bc3be4f04ea881914a1d644d6368aef1b0
|
data/CHANGELOG
CHANGED
@@ -31,8 +31,11 @@ class PEBuild::Cap::StageInstaller::POSIX
|
|
31
31
|
machine.ui.info I18n.t('pebuild.cap.stage_installer.downloading_installer',
|
32
32
|
:url => uri)
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
# Download and stage the installer without using sudo, so that root
|
35
|
+
# doesn't own the resulting directory. This allows files to be uploaded
|
36
|
+
# later.
|
37
|
+
on_machine(machine, "curl -fsSLk #{uri} -o #{dest_dir}/#{filename}", sudo: false)
|
38
|
+
on_machine(machine, "tar #{tar_flags} #{dest_dir}/#{filename} -C #{dest_dir}", sudo: false)
|
36
39
|
end
|
37
40
|
end
|
38
41
|
end
|
data/lib/pe_build/on_machine.rb
CHANGED
@@ -1,7 +1,24 @@
|
|
1
1
|
module PEBuild
|
2
2
|
module OnMachine
|
3
|
-
|
4
|
-
|
3
|
+
# Execute a command on a machine and log output
|
4
|
+
#
|
5
|
+
# This method invokes the `execute` method of the machine's communicator
|
6
|
+
# and logs any resulting output at info level.
|
7
|
+
#
|
8
|
+
#
|
9
|
+
# @param machine [Vagrant::Machine] The Vagrant machine on which to run the
|
10
|
+
# command.
|
11
|
+
# @param cmd [String] The command to run.
|
12
|
+
# @param options [Hash] Additional options to pass to the `execute` method
|
13
|
+
# of the communicator.
|
14
|
+
# @option options [Boolean] :sudo A flag which controls whether the command
|
15
|
+
# is executed with elevated privilages. Defaults to `true`.
|
16
|
+
#
|
17
|
+
# @return [void]
|
18
|
+
def on_machine(machine, cmd, **options)
|
19
|
+
options[:sudo] = true unless options.has_key?(:sudo)
|
20
|
+
|
21
|
+
machine.communicate.execute(cmd, options) do |type, data|
|
5
22
|
color = (type == :stdout) ? :green : :red
|
6
23
|
machine.ui.info(data.chomp, :color => color, :prefix => true)
|
7
24
|
end
|
data/lib/pe_build/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-pe_build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrien Thebo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: progressbar
|