vagrant-group 0.8.2 → 0.8.3.pre

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: cf2eb8c5824b35de2bcbe97313f10ab889e039da
4
- data.tar.gz: 054b684ee42f160a9089f044e38d99de8843a5c2
3
+ metadata.gz: b6d87b354acb05501190f89275ee53b8f7118d2d
4
+ data.tar.gz: e42781d8ae4e2c4b07ed82d4f1c9cda072dc44ed
5
5
  SHA512:
6
- metadata.gz: 0b1fa22c40c57c4d61f0f0c7ad7a101ee6544e01d90d4b10451db627ceb2e008b67973fa3edbd817d814a44d03768c452d2db29a1238e4511e1404c30d0c4bf4
7
- data.tar.gz: c9874185e19ff5a45e6ea13dda02a06b8a04ccaa3ab3ba507831ad1d1719bc83ddd231af912be4292f39c63e85c3254d55f0b297dad243064260ec6eedb6fd13
6
+ metadata.gz: 791561f69ab9481502acf1c1dcd5311b915139af4e5ea14af35186b06ee4d462c58980ecb8881823dee8cc666763b5b1767ad5d0160d09d3924afc506d85ab84
7
+ data.tar.gz: 935080aa5a32862894db4da6adb982e78102b2a0f3990432f56e285bc0c2ed7fe38e20ba47ffc5618ed608bbda9c468487c38f26754ad3569d4df52a57a1be23
@@ -34,14 +34,14 @@ module VagrantPlugins
34
34
  argv = parse_options(opts)
35
35
 
36
36
  action = argv[0]
37
- pattern = argv[1]
37
+ patterns = argv[1]
38
38
 
39
- if !pattern || !action || !COMMANDS.include?(action)
39
+ if !patterns || !action || !COMMANDS.include?(action)
40
40
  safe_puts(opts.help)
41
41
  return nil
42
42
  end
43
43
 
44
- groups = find_groups(pattern)
44
+ groups = find_groups(patterns.split(","))
45
45
  if groups.length == 0
46
46
  @env.ui.error('No groups matched the pattern given.')
47
47
  return nil
@@ -95,21 +95,23 @@ module VagrantPlugins
95
95
  groups.to_a
96
96
  end # all_groups
97
97
 
98
- def find_groups(pattern)
98
+ def find_groups(patterns)
99
99
  groups = []
100
100
 
101
- if pattern[0] == '/' && pattern[-1] == '/'
102
- reg = Regexp.new(pattern[1..-2])
103
- all_groups.each do |item|
104
- groups << item if item.match(reg)
105
- end
106
- else
107
- all_groups.each do |item|
108
- groups << item if item == pattern
101
+ patterns.each do |pattern|
102
+ if pattern[0] == '/' && pattern[-1] == '/'
103
+ reg = Regexp.new(pattern[1..-2])
104
+ all_groups.each do |item|
105
+ groups << item if item.match(reg)
106
+ end
107
+ else
108
+ all_groups.each do |item|
109
+ groups << item if item == pattern
110
+ end
109
111
  end
110
112
  end
111
113
 
112
- groups
114
+ groups.uniq
113
115
  end # find_groups
114
116
  end # Command
115
117
  end # Group
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Group
3
- VERSION = '0.8.2'
3
+ VERSION = '0.8.3.pre'
4
4
  end # Group
5
5
  end # VagrantPlugins
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-group
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Magosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-29 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  description:
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".gitignore"
48
+ - .gitignore
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
@@ -66,17 +66,17 @@ require_paths:
66
66
  - lib
67
67
  required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ">="
69
+ - - '>='
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
74
+ - - '>'
75
75
  - !ruby/object:Gem::Version
76
- version: '0'
76
+ version: 1.3.1
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.4.5.1
79
+ rubygems_version: 2.0.14.1
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Plugin allows to create groups of hosts and perform basic commands on them.