vagrant-parallels 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ group :development do
7
7
  # We depend on Vagrant for development, but we don't add it as a
8
8
  # gem dependency because we expect to be installed within the
9
9
  # Vagrant environment itself using `vagrant plugin`.
10
- gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git'
10
+ gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.4.0'
11
11
  gem 'debugger'
12
12
  gem 'pry'
13
13
  end
@@ -17,6 +17,7 @@ module VagrantPlugins
17
17
  b.use EnvSet, :port_collision_repair => true
18
18
  # b.use PrepareForwardedPortCollisionParams
19
19
  # b.use HandleForwardedPortCollisions
20
+ b.use PrepareNFSValidIds
20
21
  b.use SyncedFolderCleanup
21
22
  b.use SyncedFolders
22
23
  b.use PrepareNFSSettings
@@ -53,6 +54,8 @@ module VagrantPlugins
53
54
  b3.use UnregisterTemplate
54
55
  b3.use Destroy
55
56
  b3.use DestroyUnusedNetworkInterfaces
57
+ b3.use PrepareNFSValidIds
58
+ b3.use SyncedFolderCleanup
56
59
  else
57
60
  b3.use MessageWillNotDestroy
58
61
  end
@@ -101,7 +104,8 @@ module VagrantPlugins
101
104
  b2.use CheckAccessible
102
105
  b2.use action_halt
103
106
  #b2.use ClearForwardedPorts
104
- b2.use ClearSharedFolders
107
+ b2.use PrepareNFSValidIds
108
+ b2.use SyncedFolderCleanup
105
109
  b2.use Export
106
110
  b2.use PackageConfigFiles
107
111
  b2.use Package
@@ -272,7 +276,6 @@ module VagrantPlugins
272
276
  autoload :CheckParallels, File.expand_path("../action/check_parallels", __FILE__)
273
277
  autoload :CheckRunning, File.expand_path("../action/check_running", __FILE__)
274
278
  autoload :ClearNetworkInterfaces, File.expand_path("../action/clear_network_interfaces", __FILE__)
275
- autoload :ClearSharedFolders, File.expand_path("../action/clear_shared_folders", __FILE__)
276
279
  autoload :Created, File.expand_path("../action/created", __FILE__)
277
280
  autoload :Customize, File.expand_path("../action/customize", __FILE__)
278
281
  autoload :Destroy, File.expand_path("../action/destroy", __FILE__)
@@ -292,6 +295,7 @@ module VagrantPlugins
292
295
  autoload :Package, File.expand_path("../action/package", __FILE__)
293
296
  autoload :PackageConfigFiles, File.expand_path("../action/package_config_files", __FILE__)
294
297
  autoload :PrepareNFSSettings, File.expand_path("../action/prepare_nfs_settings", __FILE__)
298
+ autoload :PrepareNFSValidIds, File.expand_path("../action/prepare_nfs_valid_ids", __FILE__)
295
299
  autoload :RegisterTemplate, File.expand_path("../action/register_template", __FILE__)
296
300
  autoload :Resume, File.expand_path("../action/resume", __FILE__)
297
301
  autoload :SetupPackageFiles, File.expand_path("../action/setup_package_files", __FILE__)
@@ -2,7 +2,7 @@ module VagrantPlugins
2
2
  module Parallels
3
3
  module Action
4
4
  class PrepareNFSSettings
5
- def initialize(app,env)
5
+ def initialize(app, env)
6
6
  @app = app
7
7
  @logger = Log4r::Logger.new("vagrant::action::vm::nfs")
8
8
  end
@@ -13,7 +13,7 @@ module VagrantPlugins
13
13
 
14
14
  if using_nfs?
15
15
  @logger.info("Using NFS, preparing NFS settings by reading host IP and machine IP")
16
- add_nfs_settings_to_env!(env)
16
+ add_ips_to_env!(env)
17
17
  end
18
18
  end
19
19
 
@@ -29,7 +29,7 @@ module VagrantPlugins
29
29
  # mounting.
30
30
  #
31
31
  # The ! indicates that this method modifies its argument.
32
- def add_nfs_settings_to_env!(env)
32
+ def add_ips_to_env!(env)
33
33
  adapter, host_ip = find_host_only_adapter
34
34
  machine_ip = nil
35
35
  machine_ip = read_machine_ip if adapter
@@ -0,0 +1,17 @@
1
+ module VagrantPlugins
2
+ module Parallels
3
+ module Action
4
+ class PrepareNFSValidIds
5
+ def initialize(app, env)
6
+ @app = app
7
+ @logger = Log4r::Logger.new("vagrant::action::vm::nfs")
8
+ end
9
+
10
+ def call(env)
11
+ env[:nfs_valid_ids] = env[:machine].provider.driver.read_all_names.values
12
+ @app.call(env)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Parallels
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
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: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-18 00:00:00.000000000 Z
12
+ date: 2013-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -127,6 +127,7 @@ files:
127
127
  - lib/vagrant-parallels/action/package.rb
128
128
  - lib/vagrant-parallels/action/package_config_files.rb
129
129
  - lib/vagrant-parallels/action/prepare_nfs_settings.rb
130
+ - lib/vagrant-parallels/action/prepare_nfs_valid_ids.rb
130
131
  - lib/vagrant-parallels/action/register_template.rb
131
132
  - lib/vagrant-parallels/action/resume.rb
132
133
  - lib/vagrant-parallels/action/setup_package_files.rb
@@ -167,7 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
168
  version: '0'
168
169
  segments:
169
170
  - 0
170
- hash: 1847333419594090375
171
+ hash: -845057650540824242
171
172
  required_rubygems_version: !ruby/object:Gem::Requirement
172
173
  none: false
173
174
  requirements: