poolparty 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/proto/command_interface_handler.rb +3 -3
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -8,13 +8,13 @@ class CommandInterfaceHandler
|
|
8
8
|
the_cloud = clouds[cld.name]
|
9
9
|
if the_cloud
|
10
10
|
if command.include?(".")
|
11
|
-
command.split(".").inject(
|
11
|
+
command.split(".").inject(the_cloud) do |curr_cloud, cmd|
|
12
12
|
if cmd.match(/\((.*)\)/)
|
13
13
|
args = $1
|
14
14
|
new_cmd = cmd.gsub(args, '').gsub(/\(\)/, '')
|
15
|
-
|
15
|
+
curr_cloud = curr_cloud.send(new_cmd.to_sym, *args)
|
16
16
|
else
|
17
|
-
|
17
|
+
curr_cloud = curr_cloud.send(cmd)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
else
|