vagrant-parallels 0.0.1.dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +23 -0
  3. data/.ruby-gemset +1 -0
  4. data/Gemfile +13 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +59 -0
  7. data/Rakefile +23 -0
  8. data/lib/vagrant-parallels.rb +18 -0
  9. data/lib/vagrant-parallels/action.rb +282 -0
  10. data/lib/vagrant-parallels/action/boot.rb +21 -0
  11. data/lib/vagrant-parallels/action/check_accessible.rb +23 -0
  12. data/lib/vagrant-parallels/action/check_created.rb +21 -0
  13. data/lib/vagrant-parallels/action/check_guest_tools.rb +32 -0
  14. data/lib/vagrant-parallels/action/check_parallels.rb +22 -0
  15. data/lib/vagrant-parallels/action/check_running.rb +21 -0
  16. data/lib/vagrant-parallels/action/clear_network_interfaces.rb +19 -0
  17. data/lib/vagrant-parallels/action/clear_shared_folders.rb +17 -0
  18. data/lib/vagrant-parallels/action/created.rb +20 -0
  19. data/lib/vagrant-parallels/action/destroy.rb +19 -0
  20. data/lib/vagrant-parallels/action/forced_halt.rb +20 -0
  21. data/lib/vagrant-parallels/action/import.rb +63 -0
  22. data/lib/vagrant-parallels/action/is_paused.rb +21 -0
  23. data/lib/vagrant-parallels/action/is_running.rb +20 -0
  24. data/lib/vagrant-parallels/action/is_saved.rb +21 -0
  25. data/lib/vagrant-parallels/action/match_mac_address.rb +21 -0
  26. data/lib/vagrant-parallels/action/message_already_running.rb +16 -0
  27. data/lib/vagrant-parallels/action/message_not_created.rb +16 -0
  28. data/lib/vagrant-parallels/action/message_not_running.rb +16 -0
  29. data/lib/vagrant-parallels/action/message_will_not_destroy.rb +17 -0
  30. data/lib/vagrant-parallels/action/prepare_nfs_settings.rb +64 -0
  31. data/lib/vagrant-parallels/action/prune_nfs_exports.rb +20 -0
  32. data/lib/vagrant-parallels/action/register_template.rb +22 -0
  33. data/lib/vagrant-parallels/action/resume.rb +25 -0
  34. data/lib/vagrant-parallels/action/share_folders.rb +121 -0
  35. data/lib/vagrant-parallels/action/suspend.rb +20 -0
  36. data/lib/vagrant-parallels/action/unregister_template.rb +24 -0
  37. data/lib/vagrant-parallels/driver/prl_ctl.rb +281 -0
  38. data/lib/vagrant-parallels/errors.rb +23 -0
  39. data/lib/vagrant-parallels/plugin.rb +79 -0
  40. data/lib/vagrant-parallels/provider.rb +68 -0
  41. data/lib/vagrant-parallels/version.rb +5 -0
  42. data/locales/en.yml +1137 -0
  43. data/spec/vagrant-parallels/setup_spec.rb +7 -0
  44. data/vagrant-parallels.gemspec +59 -0
  45. metadata +158 -0
@@ -0,0 +1,7 @@
1
+ require 'vagrant-parallels/driver/prl_ctl'
2
+
3
+ describe VagrantPlugins::Parallels::Driver::PrlCtl do
4
+ let(:instance) { described_class.new }
5
+
6
+
7
+ end
@@ -0,0 +1,59 @@
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 = ["Youssef Shahin"]
10
+ spec.email = ["yshahin@gmail.com"]
11
+ spec.description = %q{Enables Vagrant to manage Parallels machines.}
12
+ spec.summary = %q{Enables Vagrant to manage Parallels machines.}
13
+ spec.homepage = "http://github.com/yshahin/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.3"
20
+ spec.add_development_dependency "rake"
21
+ spec.add_development_dependency "rspec-core", "~> 2.12.2"
22
+ spec.add_development_dependency "rspec-expectations", "~> 2.12.1"
23
+ spec.add_development_dependency "rspec-mocks", "~> 2.12.1"
24
+
25
+ # The following block of code determines the files that should be included
26
+ # in the gem. It does this by reading all the files in the directory where
27
+ # this gemspec is, and parsing out the ignored files from the gitignore.
28
+ # Note that the entire gitignore(5) syntax is not supported, specifically
29
+ # the "!" syntax, but it should mostly work correctly.
30
+ root_path = File.dirname(__FILE__)
31
+ all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
32
+ all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
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
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vagrant-parallels
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.dev
5
+ platform: ruby
6
+ authors:
7
+ - Youssef Shahin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-core
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 2.12.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.12.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-expectations
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.12.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 2.12.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-mocks
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 2.12.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 2.12.1
83
+ description: Enables Vagrant to manage Parallels machines.
84
+ email:
85
+ - yshahin@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - Gemfile
91
+ - lib/vagrant-parallels/action/boot.rb
92
+ - lib/vagrant-parallels/action/check_accessible.rb
93
+ - lib/vagrant-parallels/action/check_created.rb
94
+ - lib/vagrant-parallels/action/check_guest_tools.rb
95
+ - lib/vagrant-parallels/action/check_parallels.rb
96
+ - lib/vagrant-parallels/action/check_running.rb
97
+ - lib/vagrant-parallels/action/clear_network_interfaces.rb
98
+ - lib/vagrant-parallels/action/clear_shared_folders.rb
99
+ - lib/vagrant-parallels/action/created.rb
100
+ - lib/vagrant-parallels/action/destroy.rb
101
+ - lib/vagrant-parallels/action/forced_halt.rb
102
+ - lib/vagrant-parallels/action/import.rb
103
+ - lib/vagrant-parallels/action/is_paused.rb
104
+ - lib/vagrant-parallels/action/is_running.rb
105
+ - lib/vagrant-parallels/action/is_saved.rb
106
+ - lib/vagrant-parallels/action/match_mac_address.rb
107
+ - lib/vagrant-parallels/action/message_already_running.rb
108
+ - lib/vagrant-parallels/action/message_not_created.rb
109
+ - lib/vagrant-parallels/action/message_not_running.rb
110
+ - lib/vagrant-parallels/action/message_will_not_destroy.rb
111
+ - lib/vagrant-parallels/action/prepare_nfs_settings.rb
112
+ - lib/vagrant-parallels/action/prune_nfs_exports.rb
113
+ - lib/vagrant-parallels/action/register_template.rb
114
+ - lib/vagrant-parallels/action/resume.rb
115
+ - lib/vagrant-parallels/action/share_folders.rb
116
+ - lib/vagrant-parallels/action/suspend.rb
117
+ - lib/vagrant-parallels/action/unregister_template.rb
118
+ - lib/vagrant-parallels/action.rb
119
+ - lib/vagrant-parallels/driver/prl_ctl.rb
120
+ - lib/vagrant-parallels/errors.rb
121
+ - lib/vagrant-parallels/plugin.rb
122
+ - lib/vagrant-parallels/provider.rb
123
+ - lib/vagrant-parallels/version.rb
124
+ - lib/vagrant-parallels.rb
125
+ - LICENSE.txt
126
+ - locales/en.yml
127
+ - Rakefile
128
+ - README.md
129
+ - spec/vagrant-parallels/setup_spec.rb
130
+ - vagrant-parallels.gemspec
131
+ - .gitignore
132
+ - .ruby-gemset
133
+ homepage: http://github.com/yshahin/vagrant-parallels
134
+ licenses:
135
+ - MIT
136
+ metadata: {}
137
+ post_install_message:
138
+ rdoc_options: []
139
+ require_paths:
140
+ - - lib
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ! '>='
149
+ - !ruby/object:Gem::Version
150
+ version: 1.3.6
151
+ requirements: []
152
+ rubyforge_project: vagrant-parallels
153
+ rubygems_version: 2.0.6
154
+ signing_key:
155
+ specification_version: 4
156
+ summary: Enables Vagrant to manage Parallels machines.
157
+ test_files: []
158
+ has_rdoc: