vagrant-compose 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 628b11a465d4d3f6a8dccedb14505d02b287ac11
4
- data.tar.gz: ce0b125bbc140ff29f0059c5f8982504e3388aa8
3
+ metadata.gz: 09e9236ae1250c53a87954029f56c278fd751a72
4
+ data.tar.gz: c6537a3462a8c91043bb0104f084683dfd296abb
5
5
  SHA512:
6
- metadata.gz: 3dcf59e2c862df784886486663e8c56001f2840ac54ed4f28491b8752b1df0134c51e55c543eb092011f3c459fed1732297f190d96c009b441b4f7e1ee4163f6
7
- data.tar.gz: bffc8be815784dad1bc8eea420077e2bd60a0c72a24b8272dd5f243e10fbe8b7a244bc29071255e1530061d6207cbf62e37d6d6e153177d41e75c8d6a287a14b
6
+ metadata.gz: ad4ed218e7830d8fc803fe2ba1e839487e5487ae3b1017b24c87b0213a03f10d8bc45138dcbf309758c20915c21b295574b9c8bba3b2f27957bc996c45b0434a
7
+ data.tar.gz: e8f78b5c7d83fdf6ddc733361442a60a0bb71b46bbb129622380bf84850bfb677cd6273f29d97df3f71c7ad7f470292ed3ca962c29c3b1e879a1d4572d167750
data/CHANGELOG.md CHANGED
@@ -1,28 +1,26 @@
1
- # 0.1.0 (December 27, 2015)
1
+ # 0.7.4 (May 20, 2017)
2
2
 
3
- * Initial release.
3
+ * fix multimachine_filter error with commands without vmname
4
4
 
5
+ # 0.7.3 (May 20, 2017)
5
6
 
6
- # 0.2.2 (December 31, 2015)
7
+ * PR Fix issue calling provision without filter #13 (now mutlimachine filter works properly even if mixed with other POSIX options)
8
+ * breaking change: removed cluster.multimachine_filter property (use instead config.multimachine_filter)
7
9
 
8
- breaking changes!
9
- * nodes instances number defined into node method (instances attributes removed)
10
- * cluster.nodes return only nodes (before nodes with index were returned)
10
+ # 0.7.2 (November 16, 2016)
11
11
 
12
- other changes:
13
- * Improved documentation.
14
- * cluster domain now is optional
15
- * nodes code block now is optional
16
- * improved detection of multimachine_filter
17
- * minor fixes
12
+ * issues #11 Allow management of Ansible vars for all hosts
13
+ * issues #9 Create group_vars and host_vars directory only if necessary
18
14
 
19
- # 0.2.3 (April 2, 2016)
15
+ * breaking change: custom group of groups all_groups:children removed. Insteal use all (automatically created by ansible)
20
16
 
21
- * Now custer name can be omitted (thanks to jaydoane)
17
+ # 0.7.1 (November 04, 2016)
22
18
 
23
- other changes:
24
- * Documented cluster.debug feature
25
- * Improved code inline documentation
19
+ * Minor fix
20
+
21
+ # 0.7.0 (November 02, 2016)
22
+
23
+ * introduced support for declarative cluster definition
26
24
 
27
25
  # 0.2.4 (June 26, 2016)
28
26
 
@@ -32,22 +30,29 @@ other changes:
32
30
  NB. breaking change
33
31
  ansible_group_vars_path and ansible_host_vars_path are not supported anymore
34
32
 
35
- # 0.7.0 (November 02, 2016)
33
+ # 0.2.3 (April 2, 2016)
36
34
 
37
- * introduced support for declarative cluster definition
35
+ * Now custer name can be omitted (thanks to jaydoane)
38
36
 
39
- # 0.7.1 (November 04, 2016)
37
+ other changes:
38
+ * Documented cluster.debug feature
39
+ * Improved code inline documentation
40
40
 
41
- * Minor fix
41
+ # 0.2.2 (December 31, 2015)
42
42
 
43
- # 0.7.2 (November 16, 2016)
43
+ breaking changes!
44
+ * nodes instances number defined into node method (instances attributes removed)
45
+ * cluster.nodes return only nodes (before nodes with index were returned)
44
46
 
45
- * issues #11 Allow management of Ansible vars for all hosts
46
- * issues #9 Create group_vars and host_vars directory only if necessary
47
+ other changes:
48
+ * Improved documentation.
49
+ * cluster domain now is optional
50
+ * nodes code block now is optional
51
+ * improved detection of multimachine_filter
52
+ * minor fixes
47
53
 
48
- * breaking change: custom group of groups all_groups:children removed. Insteal use all (automatically created by ansible)
54
+ # 0.1.0 (December 27, 2015)
55
+
56
+ * Initial release.
49
57
 
50
- # 0.7.3 (May 20, 2017)
51
58
 
52
- * PR Fix issue calling provision without filter #13 (now mutlimachine filter works properly even if mixed with other POSIX options)
53
- * breaking change: removed cluster.multimachine_filter property (use instead config.multimachine_filter)
@@ -128,53 +128,63 @@ module VagrantPlugins
128
128
  end
129
129
 
130
130
  def getMultimachine_filter
131
- args = OptionParser.new do |o|
132
- # Options for all commands with vmname
133
- # vagrant/plugins/commands/destroy/command.rb
134
- # "-f", "--force"
135
- # vagrant/plugins/commands/halt/command.rb
136
- # "-f", "--force"
137
- # vagrant/plugins/commands/port/command.rb
138
- # "--guest PORT",
139
- # "--machine-readable"
140
- # vagrant/plugins/commands/provision/command.rb
141
- # "--provision-with x,y,z"
142
- # vagrant/plugins/commands/reload/command.rb
143
- # "--[no-]provision"
144
- # "--provision-with x,y,z"
145
- # vagrant/plugins/commands/resume/command.rb
146
- # "--[no-]provision"
147
- # "--provision-with x,y,z"
148
- # vagrant/plugins/commands/ssh/command.rb
149
- # "-c", "--command COMMAND"
150
- # "-p", "--plain"
151
- # vagrant/plugins/commands/ssh_config/command.rb
152
- # "--host NAME"
153
- # vagrant/plugins/commands/status/command.rb
154
- # vagrant/plugins/commands/suspend/command.rb
155
- # vagrant/plugins/commands/up/command.rb
156
- # "--[no-]destroy-on-error"
157
- # "--[no-]parallel"
158
- # "--provider PROVIDER"
159
- # "--[no-]install-provider"
160
- # "--[no-]provision"
161
- # "--provision-with x,y,z"
162
-
163
- o.on("-f", "--force", "Destroy without confirmation.")
164
- o.on("--guest PORT", "Output the host port that maps to the given guest port")
165
- o.on("--machine-readable", "Display machine-readable output")
166
- o.on("--provision-with x,y,z", Array, "Enable only certain provisioners, by type or by name.")
167
- o.on("--[no-]provision", "Enable or disable provisioning")
168
- o.on("-c", "--command COMMAND", "Execute an SSH command directly")
169
- o.on("-p", "--plain", "Plain mode, leaves authentication up to user")
170
- o.on("--host NAME", "Name the host for the config")
171
- o.on("--[no-]destroy-on-error", "Destroy machine if any fatal error happens (default to true)")
172
- o.on("--[no-]parallel", "Enable or disable parallelism if provider supports it")
173
- o.on("--provider PROVIDER", String, "Back the machine with a specific provider")
174
- o.on("--[no-]install-provider", "If possible, install the provider if it isn't installed")
175
- end.permute! #Parses command line arguments argv in permutation mode and returns list of non-option arguments.
176
-
177
- return args.length > 1 ? args.drop(1) : []
131
+ if ARGV.length <= 1
132
+ return []
133
+ # commands with vmname filter
134
+ elsif ["destroy", "halt", "port", "provision",
135
+ "reload", "resume", "ssh", "ssh_config",
136
+ "status", "suspend", "up"].include?(ARGV[0].downcase)
137
+
138
+ args = OptionParser.new do |o|
139
+ # Options for all commands with vmname
140
+ # vagrant/plugins/commands/destroy/command.rb
141
+ # "-f", "--force"
142
+ # vagrant/plugins/commands/halt/command.rb
143
+ # "-f", "--force"
144
+ # vagrant/plugins/commands/port/command.rb
145
+ # "--guest PORT",
146
+ # "--machine-readable"
147
+ # vagrant/plugins/commands/provision/command.rb
148
+ # "--provision-with x,y,z"
149
+ # vagrant/plugins/commands/reload/command.rb
150
+ # "--[no-]provision"
151
+ # "--provision-with x,y,z"
152
+ # vagrant/plugins/commands/resume/command.rb
153
+ # "--[no-]provision"
154
+ # "--provision-with x,y,z"
155
+ # vagrant/plugins/commands/ssh/command.rb
156
+ # "-c", "--command COMMAND"
157
+ # "-p", "--plain"
158
+ # vagrant/plugins/commands/ssh_config/command.rb
159
+ # "--host NAME"
160
+ # vagrant/plugins/commands/status/command.rb
161
+ # vagrant/plugins/commands/suspend/command.rb
162
+ # vagrant/plugins/commands/up/command.rb
163
+ # "--[no-]destroy-on-error"
164
+ # "--[no-]parallel"
165
+ # "--provider PROVIDER"
166
+ # "--[no-]install-provider"
167
+ # "--[no-]provision"
168
+ # "--provision-with x,y,z"
169
+
170
+ o.on("-f", "--force", "Destroy without confirmation.")
171
+ o.on("--guest PORT", "Output the host port that maps to the given guest port")
172
+ o.on("--machine-readable", "Display machine-readable output")
173
+ o.on("--provision-with x,y,z", Array, "Enable only certain provisioners, by type or by name.")
174
+ o.on("--[no-]provision", "Enable or disable provisioning")
175
+ o.on("-c", "--command COMMAND", "Execute an SSH command directly")
176
+ o.on("-p", "--plain", "Plain mode, leaves authentication up to user")
177
+ o.on("--host NAME", "Name the host for the config")
178
+ o.on("--[no-]destroy-on-error", "Destroy machine if any fatal error happens (default to true)")
179
+ o.on("--[no-]parallel", "Enable or disable parallelism if provider supports it")
180
+ o.on("--provider PROVIDER", String, "Back the machine with a specific provider")
181
+ o.on("--[no-]install-provider", "If possible, install the provider if it isn't installed")
182
+ end.permute! #Parses command line arguments argv in permutation mode and returns list of non-option arguments.
183
+
184
+ return args.length > 1 ? args.drop(1) : []
185
+ else
186
+ return []
187
+ end
178
188
  end
179
189
  end
180
190
  end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Compose
3
- VERSION = "0.7.3"
3
+ VERSION = "0.7.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-compose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabrizio Pandini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-20 00:00:00.000000000 Z
11
+ date: 2017-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake