vagrant-parallels 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -8
- data/Rakefile +2 -2
- data/lib/vagrant-parallels.rb +7 -44
- data/lib/vagrant-parallels/action.rb +45 -45
- data/lib/vagrant-parallels/action/boot.rb +1 -2
- data/lib/vagrant-parallels/action/clear_network_interfaces.rb +1 -1
- data/lib/vagrant-parallels/action/customize.rb +1 -1
- data/lib/vagrant-parallels/action/destroy.rb +1 -1
- data/lib/vagrant-parallels/action/destroy_unused_network_interfaces.rb +2 -2
- data/lib/vagrant-parallels/action/forced_halt.rb +1 -1
- data/lib/vagrant-parallels/action/forward_ports.rb +2 -2
- data/lib/vagrant-parallels/action/handle_guest_tools.rb +9 -10
- data/lib/vagrant-parallels/action/import.rb +36 -24
- data/lib/vagrant-parallels/action/network.rb +37 -37
- data/lib/vagrant-parallels/action/package.rb +3 -3
- data/lib/vagrant-parallels/action/package_config_files.rb +3 -2
- data/lib/vagrant-parallels/action/prepare_nfs_settings.rb +2 -2
- data/lib/vagrant-parallels/action/resume.rb +1 -1
- data/lib/vagrant-parallels/action/sane_defaults.rb +0 -1
- data/lib/vagrant-parallels/action/set_name.rb +7 -7
- data/lib/vagrant-parallels/action/setup_package_files.rb +6 -6
- data/lib/vagrant-parallels/action/suspend.rb +1 -1
- data/lib/vagrant-parallels/config.rb +9 -11
- data/lib/vagrant-parallels/driver/meta.rb +1 -1
- data/lib/vagrant-parallels/driver/pd_10.rb +1 -1
- data/lib/vagrant-parallels/driver/pd_11.rb +1 -1
- data/lib/vagrant-parallels/driver/pd_8.rb +19 -19
- data/lib/vagrant-parallels/driver/pd_9.rb +1 -1
- data/lib/vagrant-parallels/errors.rb +2 -2
- data/lib/vagrant-parallels/guest_cap/linux/install_parallels_tools.rb +5 -5
- data/lib/vagrant-parallels/guest_cap/linux/mount_parallels_shared_folder.rb +3 -3
- data/lib/vagrant-parallels/model/forwarded_port.rb +1 -1
- data/lib/vagrant-parallels/plugin.rb +65 -30
- data/lib/vagrant-parallels/provider.rb +8 -8
- data/lib/vagrant-parallels/synced_folder.rb +6 -6
- data/lib/vagrant-parallels/util/compile_forwarded_ports.rb +1 -1
- data/lib/vagrant-parallels/version.rb +1 -1
- data/tasks/acceptance.rake +4 -4
- data/tasks/test.rake +1 -1
- data/test/acceptance/base.rb +2 -2
- data/test/acceptance/provider/linked_clone_spec.rb +2 -2
- data/test/acceptance/shared/context_parallels.rb +1 -1
- data/test/acceptance/skeletons/linked_clone/Vagrantfile +3 -3
- data/test/unit/base.rb +6 -6
- data/test/unit/config_test.rb +22 -22
- data/test/unit/driver/pd_10_test.rb +7 -7
- data/test/unit/driver/pd_8_test.rb +4 -4
- data/test/unit/driver/pd_9_test.rb +6 -6
- data/test/unit/support/shared/pd_driver_examples.rb +97 -97
- data/test/unit/synced_folder_test.rb +11 -11
- data/vagrant-parallels.gemspec +17 -19
- metadata +2 -32
- data/config/i18n-tasks.yml.erb +0 -18
- data/test/unit/locales/locales_test.rb +0 -14
@@ -1,12 +1,12 @@
|
|
1
|
-
require
|
2
|
-
require_relative
|
1
|
+
require 'vagrant'
|
2
|
+
require_relative 'base'
|
3
3
|
|
4
|
-
require VagrantPlugins::Parallels.source_root.join(
|
4
|
+
require VagrantPlugins::Parallels.source_root.join('lib/vagrant-parallels/config')
|
5
5
|
require VagrantPlugins::Parallels.source_root.join('lib/vagrant-parallels/synced_folder')
|
6
6
|
|
7
7
|
describe VagrantPlugins::Parallels::SyncedFolder do
|
8
8
|
let(:machine) do
|
9
|
-
double(
|
9
|
+
double('machine').tap do |m|
|
10
10
|
m.stub(provider_config: VagrantPlugins::Parallels::Config.new)
|
11
11
|
m.stub(provider_name: :parallels)
|
12
12
|
end
|
@@ -18,31 +18,31 @@ describe VagrantPlugins::Parallels::SyncedFolder do
|
|
18
18
|
machine.provider_config.finalize!
|
19
19
|
end
|
20
20
|
|
21
|
-
describe
|
22
|
-
it
|
21
|
+
describe 'usable' do
|
22
|
+
it 'should be with parallels provider' do
|
23
23
|
machine.stub(provider_name: :parallels)
|
24
24
|
subject.should be_usable(machine)
|
25
25
|
end
|
26
26
|
|
27
|
-
it
|
27
|
+
it 'should not be with another provider' do
|
28
28
|
machine.stub(provider_name: :virtualbox)
|
29
29
|
subject.should_not be_usable(machine)
|
30
30
|
end
|
31
31
|
|
32
|
-
it
|
32
|
+
it 'should not be usable if not functional psf' do
|
33
33
|
machine.provider_config.functional_psf = false
|
34
34
|
expect(subject).to_not be_usable(machine)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
describe
|
39
|
-
let(:driver) { double(
|
38
|
+
describe 'prepare' do
|
39
|
+
let(:driver) { double('driver') }
|
40
40
|
|
41
41
|
before do
|
42
42
|
machine.stub(driver: driver)
|
43
43
|
end
|
44
44
|
|
45
|
-
it
|
45
|
+
it 'should share the folders' do
|
46
46
|
pending
|
47
47
|
end
|
48
48
|
end
|
data/vagrant-parallels.gemspec
CHANGED
@@ -1,27 +1,25 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
$:.unshift File.expand_path(
|
2
|
+
$:.unshift File.expand_path('../lib', __FILE__)
|
3
3
|
require 'vagrant-parallels/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
6
|
+
spec.name = 'vagrant-parallels'
|
7
7
|
spec.version = VagrantPlugins::Parallels::VERSION
|
8
8
|
spec.platform = Gem::Platform::RUBY
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Mikhail Zholobov', 'Youssef Shahin']
|
10
|
+
spec.email = ['mzholobov@parallels.com', 'yshahin@gmail.com']
|
11
11
|
spec.summary = %q{Parallels provider for Vagrant.}
|
12
12
|
spec.description = %q{Enables Vagrant to manage Parallels virtual machines.}
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
13
|
+
spec.homepage = 'http://github.com/Parallels/vagrant-parallels'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
|
-
spec.required_rubygems_version =
|
17
|
-
spec.rubyforge_project =
|
16
|
+
spec.required_rubygems_version = '>= 1.3.6'
|
17
|
+
spec.rubyforge_project = 'vagrant-parallels'
|
18
18
|
|
19
|
-
spec.add_development_dependency
|
20
|
-
spec.add_development_dependency
|
21
|
-
spec.add_development_dependency
|
22
|
-
spec.add_development_dependency
|
23
|
-
spec.add_development_dependency "rspec", "~> 2.14.0"
|
24
|
-
spec.add_development_dependency "i18n-tasks", "~> 0.3.9"
|
19
|
+
spec.add_development_dependency 'bundler', '>= 1.5.2'
|
20
|
+
spec.add_development_dependency 'rake'
|
21
|
+
spec.add_development_dependency 'nokogiri'
|
22
|
+
spec.add_development_dependency 'rspec', '~> 2.14.0'
|
25
23
|
|
26
24
|
# The following block of code determines the files that should be included
|
27
25
|
# in the gem. It does this by reading all the files in the directory where
|
@@ -29,10 +27,10 @@ Gem::Specification.new do |spec|
|
|
29
27
|
# Note that the entire gitignore(5) syntax is not supported, specifically
|
30
28
|
# the "!" syntax, but it should mostly work correctly.
|
31
29
|
root_path = File.dirname(__FILE__)
|
32
|
-
all_files = Dir.chdir(root_path) { Dir.glob(
|
33
|
-
all_files.reject! { |file| [
|
34
|
-
all_files.reject! { |file| file.start_with?(
|
35
|
-
gitignore_path = File.join(root_path,
|
30
|
+
all_files = Dir.chdir(root_path) { Dir.glob('**/{*,.*}') }
|
31
|
+
all_files.reject! { |file| ['.', '..'].include?(File.basename(file)) }
|
32
|
+
all_files.reject! { |file| file.start_with?('website/') }
|
33
|
+
gitignore_path = File.join(root_path, '.gitignore')
|
36
34
|
gitignore = File.readlines(gitignore_path)
|
37
35
|
gitignore.map! { |line| line.chomp.strip }
|
38
36
|
gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
|
@@ -57,5 +55,5 @@ Gem::Specification.new do |spec|
|
|
57
55
|
|
58
56
|
spec.files = unignored_files
|
59
57
|
spec.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact
|
60
|
-
spec.require_path =
|
58
|
+
spec.require_path = 'lib'
|
61
59
|
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.4.
|
4
|
+
version: 1.4.3
|
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: 2015-08-
|
12
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -39,20 +39,6 @@ dependencies:
|
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: minitest
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
42
|
- !ruby/object:Gem::Dependency
|
57
43
|
name: nokogiri
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,20 +67,6 @@ dependencies:
|
|
81
67
|
- - "~>"
|
82
68
|
- !ruby/object:Gem::Version
|
83
69
|
version: 2.14.0
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: i18n-tasks
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - "~>"
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: 0.3.9
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: 0.3.9
|
98
70
|
description: Enables Vagrant to manage Parallels virtual machines.
|
99
71
|
email:
|
100
72
|
- mzholobov@parallels.com
|
@@ -111,7 +83,6 @@ files:
|
|
111
83
|
- README.md
|
112
84
|
- Rakefile
|
113
85
|
- Vagrantfile
|
114
|
-
- config/i18n-tasks.yml.erb
|
115
86
|
- debug.log
|
116
87
|
- lib/vagrant-parallels.rb
|
117
88
|
- lib/vagrant-parallels/action.rb
|
@@ -173,7 +144,6 @@ files:
|
|
173
144
|
- test/unit/driver/pd_10_test.rb
|
174
145
|
- test/unit/driver/pd_8_test.rb
|
175
146
|
- test/unit/driver/pd_9_test.rb
|
176
|
-
- test/unit/locales/locales_test.rb
|
177
147
|
- test/unit/support/shared/parallels_context.rb
|
178
148
|
- test/unit/support/shared/pd_driver_examples.rb
|
179
149
|
- test/unit/synced_folder_test.rb
|
data/config/i18n-tasks.yml.erb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
base_locale: en
|
2
|
-
|
3
|
-
# skip checking 'providers_hyperv' and 'synced_folder_smb' locales
|
4
|
-
locales: []
|
5
|
-
|
6
|
-
search:
|
7
|
-
paths:
|
8
|
-
- "lib/"
|
9
|
-
data:
|
10
|
-
adapter: file_system
|
11
|
-
read:
|
12
|
-
- "locales/%{locale}.yml"
|
13
|
-
- "<%= %x[bundle show vagrant].chomp %>/templates/locales/%{locale}.yml"
|
14
|
-
write:
|
15
|
-
- "locales/%{locale}.yml"
|
16
|
-
ignore_unused:
|
17
|
-
- "vagrant_parallels.errors.*"
|
18
|
-
- "vagrant.*"
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'i18n/tasks'
|
2
|
-
require 'i18n/tasks/base_task'
|
3
|
-
|
4
|
-
describe 'locales' do
|
5
|
-
let(:i18n) { I18n::Tasks::BaseTask.new }
|
6
|
-
|
7
|
-
it 'are all used' do
|
8
|
-
i18n.unused_keys.should have(0).keys
|
9
|
-
end
|
10
|
-
|
11
|
-
it 'are all present' do
|
12
|
-
i18n.missing_keys.should have(0).keys
|
13
|
-
end
|
14
|
-
end
|