vagrant-parallels 1.7.3 → 1.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -1
- data/lib/vagrant-parallels/action/resume.rb +4 -0
- data/lib/vagrant-parallels/action.rb +16 -10
- data/lib/vagrant-parallels/synced_folder.rb +2 -1
- data/lib/vagrant-parallels/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 907c83143e949fe2eed035829b2b09877fcf5e52
|
4
|
+
data.tar.gz: 12a433d3ec89b489b13a1a694d74ce4113cfcb42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a04f7005a18e004e07707ed98f445ba4e95b739b8bfdcd5e552b9e9208c55a08643a53ed2b2b6ac80cd14f5220933077936874705c3665bf4b898fedf4b96ee
|
7
|
+
data.tar.gz: 1d77264eb108f97e5448f3b2977ca70f6334efe5522e08c548a080971831a775b14e5d09f62a459e923cbf7e8000f8c3d005909c3551d3978a0ff79ec5483bcd
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,28 @@
|
|
1
|
+
## 1.7.4 (April 20, 2017)
|
2
|
+
IMPROVEMENTS:
|
3
|
+
- Make start action (`"vagrant up"`) run provisioners if VM is running.
|
4
|
+
[[GH-294](https://github.com/Parallels/vagrant-parallels/pull/294)]
|
5
|
+
|
6
|
+
BUG FIXES:
|
7
|
+
- Properly handle `"paused"` VM state for up and halt actions.
|
8
|
+
[[GH-295](https://github.com/Parallels/vagrant-parallels/pull/295)]
|
9
|
+
- synced_folder: Escape special characters in Windows-specific guest paths.
|
10
|
+
[[GH-296](https://github.com/Parallels/vagrant-parallels/pull/296)]
|
11
|
+
|
12
|
+
|
1
13
|
## 1.7.3 (February 28, 2017)
|
2
14
|
BUG FIXES:
|
3
15
|
- Fix exceptions related to `nokogiri` gem.
|
4
16
|
[[GH-291](https://github.com/Parallels/vagrant-parallels/issues/291)],
|
5
17
|
[[GH-292](https://github.com/Parallels/vagrant-parallels/issues/292)]
|
6
18
|
|
19
|
+
|
7
20
|
## 1.7.2 (December 16, 2016)
|
8
21
|
BUG FIXES:
|
9
22
|
- Fix Parallels Tools update in Linux guests. Call `ptiagent-cmd` with `--install`,
|
10
23
|
not `--info`. [[GH-286](https://github.com/Parallels/vagrant-parallels/pull/286)]
|
11
24
|
|
25
|
+
|
12
26
|
## 1.7.1 (December 7, 2016)
|
13
27
|
FEATURES:
|
14
28
|
- **Guest capability for installing Parallels Tools in Windows.** Now it is
|
@@ -84,7 +98,6 @@ BUG FIXES:
|
|
84
98
|
|
85
99
|
|
86
100
|
## 1.6.0 (December 24, 2015)
|
87
|
-
|
88
101
|
BREAKING CHANGES:
|
89
102
|
|
90
103
|
- The required Vagrant version is **1.8** or higher. It is caused by changes
|
@@ -9,9 +9,13 @@ module VagrantPlugins
|
|
9
9
|
def call(env)
|
10
10
|
current_state = env[:machine].state.id
|
11
11
|
|
12
|
+
# Driver method "resume" works for suspended and paused state as well
|
12
13
|
if current_state == :suspended
|
13
14
|
env[:ui].info I18n.t('vagrant.actions.vm.resume.resuming')
|
14
15
|
env[:machine].provider.driver.resume
|
16
|
+
elsif current_state == :paused
|
17
|
+
env[:ui].info I18n.t('vagrant.actions.vm.resume.unpausing')
|
18
|
+
env[:machine].provider.driver.resume
|
15
19
|
end
|
16
20
|
|
17
21
|
@app.call(env)
|
@@ -82,11 +82,8 @@ module VagrantPlugins
|
|
82
82
|
next
|
83
83
|
end
|
84
84
|
|
85
|
-
|
86
|
-
|
87
|
-
b2.use Resume
|
88
|
-
end
|
89
|
-
end
|
85
|
+
# Resume/Unpause the VM if needed.
|
86
|
+
b1.use Resume
|
90
87
|
|
91
88
|
b1.use Call, GracefulHalt, :stopped, :running do |env2, b2|
|
92
89
|
if !env2[:result]
|
@@ -277,22 +274,31 @@ module VagrantPlugins
|
|
277
274
|
Vagrant::Action::Builder.new.tap do |b|
|
278
275
|
b.use BoxCheckOutdated
|
279
276
|
b.use Call, IsState, :running do |env1, b1|
|
280
|
-
# If the VM is running,
|
277
|
+
# If the VM is running, run the necessary provisioners
|
281
278
|
if env1[:result]
|
282
279
|
b1.use Message, I18n.t('vagrant_parallels.commands.common.vm_already_running')
|
280
|
+
action_provision
|
283
281
|
next
|
284
282
|
end
|
285
283
|
|
286
284
|
b1.use Call, IsState, :suspended do |env2, b2|
|
287
285
|
if env2[:result]
|
288
|
-
# The VM is suspended,
|
286
|
+
# The VM is suspended, go to resume
|
289
287
|
b2.use action_resume
|
290
288
|
next
|
291
289
|
end
|
292
290
|
|
293
|
-
|
294
|
-
|
295
|
-
|
291
|
+
b2.use Call, IsState, :paused do |env3, b3|
|
292
|
+
if env3[:result]
|
293
|
+
# The VM is paused, just run the Resume action to unpause it
|
294
|
+
b3.use Resume
|
295
|
+
next
|
296
|
+
end
|
297
|
+
|
298
|
+
# The VM is not suspended or paused, so we must have to
|
299
|
+
# boot it up like normal. Boot!
|
300
|
+
b3.use action_boot
|
301
|
+
end
|
296
302
|
end
|
297
303
|
end
|
298
304
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-parallels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikhail Zholobov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-04-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: 1.3.6
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project: vagrant-parallels
|
139
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.5.2
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Parallels provider for Vagrant.
|