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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39ceb78e8f21f474b44e9a51e920ba314f128a64
4
- data.tar.gz: 730e5af6e56df50137c36abe86777d3f4e463398
3
+ metadata.gz: 907c83143e949fe2eed035829b2b09877fcf5e52
4
+ data.tar.gz: 12a433d3ec89b489b13a1a694d74ce4113cfcb42
5
5
  SHA512:
6
- metadata.gz: 8ac8ab2ef874a5b947d712d1d082eb9fa05b861c360cce42fcfdcadface314665fbd9fa4a039cca8305a3861ae7cead0ef38b01fdb278a5a7c765187841fc07c
7
- data.tar.gz: 1171268c572e84df3f1db5575165edfed2554b793c0aa6f3a6fa10aa6d0f2270a9f0cd04c2c304b0292fcbf05bda700ea35c4888fb5c5921dd20e5f3bbf376ac
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
- b1.use Call, IsState, :suspended do |env2, b2|
86
- if env2[:result]
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, then our work here is done, exit
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, so just resume it
286
+ # The VM is suspended, go to resume
289
287
  b2.use action_resume
290
288
  next
291
289
  end
292
290
 
293
- # The VM is not saved, so we must have to boot it up
294
- # like normal. Boot!
295
- b2.use action_boot
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
@@ -105,7 +105,8 @@ module VagrantPlugins
105
105
  end
106
106
 
107
107
  def os_friendly_id(id)
108
- id.gsub(/[\/:]/,'_').sub(/^_/, '')
108
+ # Replace chars *, ", :, <, >, ?, |, /, \
109
+ id.gsub(/[*":<>?|\/\\]/,'_').sub(/^_/, '')
109
110
  end
110
111
  end
111
112
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Parallels
3
- VERSION = '1.7.3'
3
+ VERSION = '1.7.4'
4
4
  end
5
5
  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.3
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-03-01 00:00:00.000000000 Z
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.4.5.1
139
+ rubygems_version: 2.5.2
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Parallels provider for Vagrant.