vagrant-mos 0.9.40 → 0.9.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-mos/action.rb +0 -4
- data/lib/vagrant-mos/plugin.rb +0 -7
- data/lib/vagrant-mos/version.rb +1 -1
- metadata +1 -2
- data/lib/vagrant-mos/synced_folder.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a55b5d146c0fd19249f11f008fc10427db68f06
|
4
|
+
data.tar.gz: 444c50f70865970221693a1514b5325a04a2fb5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 829278f5df50a0bb7791e16e9daa86fecfdc2c767286f709b5d017bfea6659ab1f6987dba25d096af9b91dad0af93abfc26a2686f8d384958d5face2b6984443
|
7
|
+
data.tar.gz: 82e2d0144abe9fa10ddcabf968123351dfdea3e44fe7fcd488a77b951ab52b194acfe82e4ac12435adf3427e133adaf728e4bc52187459227a0178ef335d9d40
|
data/lib/vagrant-mos/action.rb
CHANGED
@@ -149,8 +149,6 @@ module VagrantPlugins
|
|
149
149
|
b1.use Call, IsStopped do |env2, b2|
|
150
150
|
if env2[:result]
|
151
151
|
b2.use action_prepare_boot
|
152
|
-
#b2.use Vagrant::Action::Builtin::SyncedFolderCleanup
|
153
|
-
#b2.use Vagrant::Action::Builtin::SyncedFolders
|
154
152
|
b2.use StartInstance # restart this instance
|
155
153
|
else
|
156
154
|
b2.use MessageAlreadyCreated # TODO write a better message
|
@@ -158,8 +156,6 @@ module VagrantPlugins
|
|
158
156
|
end
|
159
157
|
else
|
160
158
|
b1.use action_prepare_boot
|
161
|
-
#b1.use Vagrant::Action::Builtin::SyncedFolderCleanup
|
162
|
-
#b1.use Vagrant::Action::Builtin::SyncedFolders
|
163
159
|
b1.use RunInstance # launch a new instance
|
164
160
|
end
|
165
161
|
end
|
data/lib/vagrant-mos/plugin.rb
CHANGED
data/lib/vagrant-mos/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-mos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yangcs2009
|
@@ -119,7 +119,6 @@ files:
|
|
119
119
|
- lib/vagrant-mos/errors.rb
|
120
120
|
- lib/vagrant-mos/plugin.rb
|
121
121
|
- lib/vagrant-mos/provider.rb
|
122
|
-
- lib/vagrant-mos/synced_folder.rb
|
123
122
|
- lib/vagrant-mos/util/timer.rb
|
124
123
|
- lib/vagrant-mos/version.rb
|
125
124
|
- locales/en.yml
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module VagrantPlugins
|
2
|
-
module MOS
|
3
|
-
class SyncedFolder < Vagrant.plugin("2", :synced_folder)
|
4
|
-
def usable?(machine)
|
5
|
-
# These synced folders only work if the provider is Docker
|
6
|
-
machine.provider_name == :mos
|
7
|
-
end
|
8
|
-
|
9
|
-
def prepare(machine, folders, _opts)
|
10
|
-
# FIXME: Check whether the container has already been created with
|
11
|
-
# different synced folders and let the user know about it
|
12
|
-
folders.each do |id, data|
|
13
|
-
host_path = File.expand_path(data[:hostpath], machine.env.root_path)
|
14
|
-
guest_path = data[:guestpath]
|
15
|
-
#machine.provider_config.volumes << "#{host_path}:#{guest_path}"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|