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 +4 -4
- data/README.md +1 -1
- data/lib/vagrant-group/command.rb +6 -1
- data/lib/vagrant-group/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: 2a4dd960e0680217401217f4925cbc776fca5144
|
4
|
+
data.tar.gz: d9081b252da970e291385ab3839af05ea52e9f78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|