vagrant-shell-local 0.0.1 → 0.1.0

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: a41c5e2aa81787edda86a7facac6d211a6f814a2
4
- data.tar.gz: aecf7c6ab317ec1625c522bc364aa998dd4afa19
3
+ metadata.gz: ebe3bae9c6963fd35f42ddb4dd51d47d41f4a962
4
+ data.tar.gz: d47dc186f0b9be87f610d9375a1a3ec1664422c8
5
5
  SHA512:
6
- metadata.gz: 2cae36a13e5aa26024ccf2bd42fe6d99637e435b70d9f096f9cbb7bfa552c060684ba1e453766bfedc4a47d7d47623a6c98acd608e7bc022218d42cb03b9322b
7
- data.tar.gz: 78d75b244fa798e37c726d0860445cfbda56061213eced50bd9c8158138268828c8b28c43b710e79a8fdee3534c5d601fa9623fb8c69a2fde683ee04132b60a8
6
+ metadata.gz: 35edb96a5f456e2571d375859b8d1e148e8e75446747a5c7804e9b3e614408dc0452ef05c740089d706b398758e50889add1f07679f598f8bc9775a592de34f1
7
+ data.tar.gz: 4b696afd3df9573c6313a9d4212db6cfc85e390da34c141cc9ef435f5e0555fad5b458a3b1153134bb8045d1b394f6dccf53fd938e957d716259e46f353e4df0
data/.gitignore CHANGED
@@ -16,3 +16,5 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  .vagrant
19
+ /.idea
20
+ *.iml
data/Gemfile CHANGED
@@ -6,4 +6,4 @@ gemspec
6
6
  # We depend on Vagrant for development, but we don't add it as a
7
7
  # gem dependency because we expect to be installed within the
8
8
  # Vagrant environment itself using `vagrant plugin`.
9
- gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git"
9
+ gem "vagrant"
@@ -3,12 +3,19 @@ require 'open3'
3
3
  module VagrantPlugins::ShellLocal
4
4
  class Provisioner < Vagrant.plugin('2', :provisioner)
5
5
  def provision
6
- result = Vagrant::Util::Subprocess.execute(
7
- *config.command,
8
- :notify => [:stdout, :stderr],
9
- :env => {PATH: ENV["VAGRANT_OLD_ENV_PATH"]},
10
- ) do |io_name, data|
11
- @machine.env.ui.info "[#{io_name}] #{data}"
6
+ saved_path, ENV['PATH'] = ENV['PATH'], ENV["VAGRANT_OLD_ENV_PATH"]
7
+ begin
8
+ result = Vagrant::Util::Subprocess.execute(
9
+ *config.command,
10
+ :notify => [:stdout, :stderr],
11
+ :env => {
12
+ PATH: ENV["VAGRANT_OLD_ENV_PATH"]
13
+ },
14
+ ) do |io_name, data|
15
+ @machine.env.ui.info "[#{io_name}] #{data}"
16
+ end
17
+ ensure
18
+ ENV['PATH'] = saved_path
12
19
  end
13
20
 
14
21
  if !result.exit_code.zero?
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module ShellLocal
3
- VERSION = '0.0.1'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "bundler"
23
23
  spec.add_development_dependency "rake"
24
24
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-shell-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Bondarev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2017-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.4.5.1
81
+ rubygems_version: 2.5.2
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: a vagrant provisioner to run commands on the host