summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/test.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-03-10 18:06:32 -0700
committerelijah <elijah@riseup.net>2013-03-10 18:06:32 -0700
commitd3fcd766ea6d6a21d892f3fab264606dfacf14a7 (patch)
tree12fbde94b27fc81df6d8105bd64677fab1a73fd6 /lib/leap_cli/commands/test.rb
parent48fd5f813b949fb0c9c19755d8389bbfcad3999b (diff)
fixed misc. bugs with switch to 'environment' flag.
Diffstat (limited to 'lib/leap_cli/commands/test.rb')
-rw-r--r--lib/leap_cli/commands/test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb
index 80a6333..1da4f6d 100644
--- a/lib/leap_cli/commands/test.rb
+++ b/lib/leap_cli/commands/test.rb
@@ -25,11 +25,11 @@ module LeapCli; module Commands
def generate_test_client_openvpn_config
template = read_file! Path.find_file(:test_client_openvpn_template)
- ['production', 'testing', 'local'].each do |tag|
- vpn_nodes = manager.nodes[:tags => tag][:services => 'openvpn']
+ ['production', 'testing', 'local', 'development'].each do |env|
+ vpn_nodes = manager.nodes[:environment => env][:services => 'openvpn']
if vpn_nodes.any?
config = Util.erb_eval(template, binding)
- write_file! ('test_openvpn_'+tag).to_sym, config
+ write_file! [:test_openvpn_config, env], config
end
end
end