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 +4 -4
- data/.gitignore +2 -0
- data/Gemfile +1 -1
- data/lib/vagrant-shell-local/provisioner.rb +13 -6
- data/lib/vagrant-shell-local/version.rb +1 -1
- data/vagrant-shell-local.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebe3bae9c6963fd35f42ddb4dd51d47d41f4a962
|
4
|
+
data.tar.gz: d47dc186f0b9be87f610d9375a1a3ec1664422c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35edb96a5f456e2571d375859b8d1e148e8e75446747a5c7804e9b3e614408dc0452ef05c740089d706b398758e50889add1f07679f598f8bc9775a592de34f1
|
7
|
+
data.tar.gz: 4b696afd3df9573c6313a9d4212db6cfc85e390da34c141cc9ef435f5e0555fad5b458a3b1153134bb8045d1b394f6dccf53fd938e957d716259e46f353e4df0
|
data/.gitignore
CHANGED
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"
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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?
|
data/vagrant-shell-local.gemspec
CHANGED
@@ -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"
|
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
|
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:
|
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: '
|
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: '
|
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.
|
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
|