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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa005c989ef1d8020a8b1f09325d524ee0194e3b
4
- data.tar.gz: dcd9b98f1b80bf47a62bfb6fb5643cca44253cd7
3
+ metadata.gz: ded4c327d52eb4f6b37e1e4af39c8dfff2b40cc1
4
+ data.tar.gz: 3acd5c4104d3bc23a206a82570057e27e28f51fa
5
5
  SHA512:
6
- metadata.gz: 3a3126736539656042f8bd31489abece1fce6560c6c6f6728801e9734d17d4fec6fba7f77bbe45c1cefba7043200649d2f97e25ed6a6e1493a396020d0c4cde0
7
- data.tar.gz: 823c98d3ccbf62d995e0cd67f7f28b1b5adacfc02a15a5933bcc105001eb425ce751a287feb185921c62046807cf95db9c946a9c17edd9d8731725409f52036b
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
- @TODO
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. @TODO
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
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module VagrantPlugins
3
3
  module Blocker
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-blocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Vansteenkiste