vagrant-parallels 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -0
- data/LICENSE.txt +1 -1
- data/lib/vagrant-parallels/action.rb +7 -0
- data/lib/vagrant-parallels/action/box_unregister.rb +3 -0
- data/lib/vagrant-parallels/action/check_shared_interface.rb +29 -0
- data/lib/vagrant-parallels/action/clear_forwarded_ports.rb +3 -2
- data/lib/vagrant-parallels/action/export.rb +69 -6
- data/lib/vagrant-parallels/action/forward_ports.rb +1 -1
- data/lib/vagrant-parallels/action/network.rb +8 -10
- data/lib/vagrant-parallels/action/sane_defaults.rb +2 -1
- data/lib/vagrant-parallels/cap.rb +0 -1
- data/lib/vagrant-parallels/config.rb +18 -8
- data/lib/vagrant-parallels/driver/base.rb +68 -24
- data/lib/vagrant-parallels/driver/meta.rb +3 -1
- data/lib/vagrant-parallels/driver/pd_10.rb +36 -39
- data/lib/vagrant-parallels/driver/pd_11.rb +4 -0
- data/lib/vagrant-parallels/driver/pd_8.rb +31 -27
- data/lib/vagrant-parallels/errors.rb +10 -2
- data/lib/vagrant-parallels/version.rb +1 -1
- data/locales/en.yml +25 -9
- metadata +4 -29
- data/.gitignore +0 -34
- data/.travis.yml +0 -10
- data/CONTRIBUTING.md +0 -80
- data/Gemfile +0 -14
- data/Rakefile +0 -21
- data/debug.log +0 -1237
- data/tasks/acceptance.rake +0 -28
- data/tasks/bundler.rake +0 -3
- data/tasks/test.rake +0 -8
- data/test/acceptance/base.rb +0 -2
- data/test/acceptance/provider/linked_clone_spec.rb +0 -30
- data/test/acceptance/provider/snapshot_spec.rb +0 -63
- data/test/acceptance/shared/context_parallels.rb +0 -2
- data/test/acceptance/skeletons/linked_clone/Vagrantfile +0 -7
- data/test/unit/base.rb +0 -24
- data/test/unit/cap_test.rb +0 -96
- data/test/unit/config_test.rb +0 -91
- data/test/unit/driver/pd_10_test.rb +0 -31
- data/test/unit/driver/pd_8_test.rb +0 -10
- data/test/unit/driver/pd_9_test.rb +0 -29
- data/test/unit/support/shared/parallels_context.rb +0 -230
- data/test/unit/support/shared/pd_driver_examples.rb +0 -339
- data/test/unit/synced_folder_test.rb +0 -49
- data/vagrant-parallels.gemspec +0 -59
- data/vagrant-spec.config.example.rb +0 -10
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'vagrant'
|
2
|
-
require_relative 'base'
|
3
|
-
|
4
|
-
require VagrantPlugins::Parallels.source_root.join('lib/vagrant-parallels/config')
|
5
|
-
require VagrantPlugins::Parallels.source_root.join('lib/vagrant-parallels/synced_folder')
|
6
|
-
|
7
|
-
describe VagrantPlugins::Parallels::SyncedFolder do
|
8
|
-
let(:machine) do
|
9
|
-
double('machine').tap do |m|
|
10
|
-
m.stub(provider_config: VagrantPlugins::Parallels::Config.new)
|
11
|
-
m.stub(provider_name: :parallels)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
subject { described_class.new }
|
16
|
-
|
17
|
-
before do
|
18
|
-
machine.provider_config.finalize!
|
19
|
-
end
|
20
|
-
|
21
|
-
describe 'usable' do
|
22
|
-
it 'should be with parallels provider' do
|
23
|
-
machine.stub(provider_name: :parallels)
|
24
|
-
subject.should be_usable(machine)
|
25
|
-
end
|
26
|
-
|
27
|
-
it 'should not be with another provider' do
|
28
|
-
machine.stub(provider_name: :virtualbox)
|
29
|
-
subject.should_not be_usable(machine)
|
30
|
-
end
|
31
|
-
|
32
|
-
it 'should not be usable if not functional psf' do
|
33
|
-
machine.provider_config.functional_psf = false
|
34
|
-
expect(subject).to_not be_usable(machine)
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
describe 'prepare' do
|
39
|
-
let(:driver) { double('driver') }
|
40
|
-
|
41
|
-
before do
|
42
|
-
machine.stub(driver: driver)
|
43
|
-
end
|
44
|
-
|
45
|
-
it 'should share the folders' do
|
46
|
-
pending
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
data/vagrant-parallels.gemspec
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
$:.unshift File.expand_path('../lib', __FILE__)
|
3
|
-
require 'vagrant-parallels/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'vagrant-parallels'
|
7
|
-
spec.version = VagrantPlugins::Parallels::VERSION
|
8
|
-
spec.platform = Gem::Platform::RUBY
|
9
|
-
spec.authors = ['Mikhail Zholobov', 'Youssef Shahin']
|
10
|
-
spec.email = ['mzholobov@parallels.com', 'yshahin@gmail.com']
|
11
|
-
spec.summary = %q{Parallels provider for Vagrant.}
|
12
|
-
spec.description = %q{Enables Vagrant to manage Parallels virtual machines.}
|
13
|
-
spec.homepage = 'http://github.com/Parallels/vagrant-parallels'
|
14
|
-
spec.license = 'MIT'
|
15
|
-
|
16
|
-
spec.required_rubygems_version = '>= 1.3.6'
|
17
|
-
spec.rubyforge_project = 'vagrant-parallels'
|
18
|
-
|
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'
|
23
|
-
|
24
|
-
# The following block of code determines the files that should be included
|
25
|
-
# in the gem. It does this by reading all the files in the directory where
|
26
|
-
# this gemspec is, and parsing out the ignored files from the gitignore.
|
27
|
-
# Note that the entire gitignore(5) syntax is not supported, specifically
|
28
|
-
# the "!" syntax, but it should mostly work correctly.
|
29
|
-
root_path = File.dirname(__FILE__)
|
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')
|
34
|
-
gitignore = File.readlines(gitignore_path)
|
35
|
-
gitignore.map! { |line| line.chomp.strip }
|
36
|
-
gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
|
37
|
-
|
38
|
-
unignored_files = all_files.reject do |file|
|
39
|
-
# Ignore any directories, the gemspec only cares about files
|
40
|
-
next true if File.directory?(file)
|
41
|
-
|
42
|
-
# Ignore any paths that match anything in the gitignore. We do
|
43
|
-
# two tests here:
|
44
|
-
#
|
45
|
-
# - First, test to see if the entire path matches the gitignore.
|
46
|
-
# - Second, match if the basename does, this makes it so that things
|
47
|
-
# like '.DS_Store' will match sub-directories too (same behavior
|
48
|
-
# as git).
|
49
|
-
#
|
50
|
-
gitignore.any? do |ignore|
|
51
|
-
File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
|
52
|
-
File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
spec.files = unignored_files
|
57
|
-
spec.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact
|
58
|
-
spec.require_path = 'lib'
|
59
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
require_relative 'test/acceptance/base'
|
2
|
-
|
3
|
-
Vagrant::Spec::Acceptance.configure do |c|
|
4
|
-
c.component_paths << File.expand_path('../test/acceptance', __FILE__)
|
5
|
-
c.skeleton_paths << File.expand_path('../test/acceptance/skeletons', __FILE__)
|
6
|
-
|
7
|
-
c.provider 'parallels',
|
8
|
-
box: 'ENTER BOX URL',
|
9
|
-
contexts: ['provider-context/parallels']
|
10
|
-
end
|