vagrant-blocker 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -6
- data/lib/vagrant_blocker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ded4c327d52eb4f6b37e1e4af39c8dfff2b40cc1
|
4
|
+
data.tar.gz: 3acd5c4104d3bc23a206a82570057e27e28f51fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c324a9a9d1961cce849ebd20d32d4d41d506781d4e7a11afba2f067caa804bf53b87269831c6dcfff7411dcdc8b6912babfd77752a6d4631b9e2c400f9a4b12a
|
7
|
+
data.tar.gz: accb9e4ccbde0da7d908fef1ebe8755679d5234e6d7b3fba424bfa4a248f147834e44f920d8d97de3f7d475734ad81e489d631c9792c4478c185a46a185e0e68
|
data/README.md
CHANGED
@@ -8,7 +8,30 @@ Block certain VMs from running together in a multi-VM vagrant setup.
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
|
11
|
+
This plugin can be used to make sure certain machines can not be run together:
|
12
|
+
When bringing a machine up, an error will be thrown whenever a box that blocks
|
13
|
+
or is blocked by an already running machine.
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
config.vm.define 'foo' do |vm|
|
17
|
+
vm.blocker.blocks = 'bar'
|
18
|
+
end
|
19
|
+
config.vm.define 'bar'
|
20
|
+
```
|
21
|
+
|
22
|
+
By default, if a non-existant machine is configured in the blockers, an error
|
23
|
+
will be thrown. You can disable this behaviour by setting strict_config to `false`:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
config.blocker.strict_config = false
|
27
|
+
|
28
|
+
config.vm.define 'strict' do |vm|
|
29
|
+
vm.blocker.strict_config = true
|
30
|
+
vm.blocker.blocks = %w(foo nonexistant)
|
31
|
+
end
|
32
|
+
|
33
|
+
config.vm.define 'foo'
|
34
|
+
```
|
12
35
|
|
13
36
|
## Testing
|
14
37
|
|
@@ -24,11 +47,8 @@ Block certain VMs from running together in a multi-VM vagrant setup.
|
|
24
47
|
```
|
25
48
|
|
26
49
|
2. Run `bundle install`
|
27
|
-
3.
|
28
|
-
|
29
|
-
## Example
|
30
|
-
|
31
|
-
@TODO
|
50
|
+
3. You can use vagrant like you are used to with `bundle exec vagrant <command>`.
|
51
|
+
An example Vagrantfile can be found in the test folder.
|
32
52
|
|
33
53
|
## Contributing
|
34
54
|
|