vagrant-group 0.2.1 → 0.3.0

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: 40fe040fb02b96693012398f6c7ad29f9da9e53f
4
- data.tar.gz: c13cfca9beb58de17cdd25bb82b9a5cd7eee43c7
3
+ metadata.gz: 2a4dd960e0680217401217f4925cbc776fca5144
4
+ data.tar.gz: d9081b252da970e291385ab3839af05ea52e9f78
5
5
  SHA512:
6
- metadata.gz: 6fe1074b869a6bf6b519bbbec9fd1024f14d87cfefc842d3240a2bb68f554bc68013b71754d0273175519b52616ba0da1412226079d2d4e575d0b000be8f35df
7
- data.tar.gz: 778f25785132b31039db9deb480718e6ef835d36c0529d83a5724757e8cf679cd4ba9ab9d84b751f881f17791a1e8a1507b96bbc74a755fb6521be8f15cecec9
6
+ metadata.gz: d6187fa87820167b3a4f3b7c38669381a9b538158321b70b5af142828d8e48065dfcbf4ac7f43801ba408eb2914bd9ce5368d58a86562136c6c556e3a447cea2
7
+ data.tar.gz: e399476386cc37e3832d9eadbcf1f0632fa7bc5a75aab117705a535bb64b1e0e63b57b4e69fefe2c4b50411c9849edf824dd80f08b4c47f42cf5b9a672667d34
data/README.md CHANGED
@@ -47,7 +47,7 @@ $ vagrant group databases halt
47
47
  ```
48
48
 
49
49
  At the moment you use commands `up`, `halt`, `provision` and `destroy`.
50
- Parameters are not supported.
50
+ Parameters are not supported except `--force` in `halt` and `destroy` commands.
51
51
 
52
52
  In order to list hosts associated to group issue below command:
53
53
  ```
@@ -17,6 +17,11 @@ module VagrantPlugins
17
17
  o.on('-h', '--help', 'Print this help') do
18
18
  safe_puts(opts.help)
19
19
  end
20
+
21
+ o.on('-f', '--force', 'Do action (destroy, halt) without confirmation.') do
22
+ options[:force_confirm_destroy] = true
23
+ options[:force_halt] = true
24
+ end
20
25
  end
21
26
 
22
27
  argv = parse_options(opts)
@@ -45,7 +50,7 @@ module VagrantPlugins
45
50
  with_target_vms() do |machine|
46
51
  if machine.config.group.groups.has_key?(group)
47
52
  if machine.config.group.groups[group].include? machine.name.to_s
48
- machine.action(action)
53
+ machine.action(action, **options)
49
54
  end
50
55
  end
51
56
  end
@@ -1,7 +1,7 @@
1
1
  module VagrantPlugins
2
2
  module Group
3
3
 
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
 
6
6
  end # Group
7
7
  end # VagrantPlugins
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-group
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Magosa