vagrant-pe_build 0.15.5 → 0.15.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c077d5528d6edd2e586023c52ee092e011bc3d0
4
- data.tar.gz: ff1a5a86ecb8846990c06691dfacc97ab6b1206a
3
+ metadata.gz: f637c7f7f078263eabf2adf02ca977543dcd2c76
4
+ data.tar.gz: 63c05324c683579bf4811a964748a99e8afd4a39
5
5
  SHA512:
6
- metadata.gz: 596922c1192bd48a356a8c608e0b89069765d630896f8099bef422b0af591d7cfa31c2fde21cff0e9055213d0889e5ab658adc52b1fdee64803ade833d7c96c2
7
- data.tar.gz: a00bddf33fcff06d07666dddc05ce10d1869df9293661f94f3db1e22e1436a3bf3e371dc91ec7b39b777f637bef86213294ab38b7816847820b788afb8d6a4e2
6
+ metadata.gz: a8a7f289f6b116692389a6824054361799d0bef1cd5bdc460cc6063eca9f01ffaa8f6b4ba37e5a1faa98cc9064557108991423888252cdab185ba15ebaa263c8
7
+ data.tar.gz: bafcb685655e6411c2b87dc1b1ee5ba8cc912bd6f0b68ab21c4ff7baca2296c39b97a46712c8bcb67eadd533092473bc3be4f04ea881914a1d644d6368aef1b0
data/CHANGELOG CHANGED
@@ -1,6 +1,15 @@
1
1
  vagrant-pe_build
2
2
  ================
3
3
 
4
+ 0.15.6
5
+ ------
6
+
7
+ 2016-09-10
8
+
9
+ This is a backwards compatible bugfix release.
10
+
11
+ * (GH-126) Don't use root privileges when staging installer tarballs.
12
+
4
13
  0.15.5
5
14
  ------
6
15
 
@@ -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
- on_machine(machine, "curl -fsSLk #{uri} -o #{dest_dir}/#{filename}")
35
- on_machine(machine, "tar #{tar_flags} #{dest_dir}/#{filename} -C #{dest_dir}")
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
@@ -1,7 +1,24 @@
1
1
  module PEBuild
2
2
  module OnMachine
3
- def on_machine(machine, cmd)
4
- machine.communicate.sudo(cmd) do |type, data|
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
@@ -1,3 +1,3 @@
1
1
  module PEBuild
2
- VERSION = '0.15.5'
2
+ VERSION = '0.15.6'
3
3
  end
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.5
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-08-23 00:00:00.000000000 Z
12
+ date: 2016-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: progressbar