aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-05-20 23:37:44 -0700
committerelijah <elijah@riseup.net>2014-05-20 23:37:44 -0700
commit7f89d03d68f96e692da2653db30f8aae2ac1729b (patch)
treee94c3a76bdee6f4f1fc84c86a837321c868ccd58 /lib/leap_cli/commands
parent16a202b173ca6389e66e523b8e88d417d01d3db8 (diff)
downloadleap_cli-7f89d03d68f96e692da2653db30f8aae2ac1729b.tar.gz
leap_cli-7f89d03d68f96e692da2653db30f8aae2ac1729b.tar.bz2
added support for environmentally scoped services and tags (e.g. services/webapp.production.json). requires latest platform.
Diffstat (limited to 'lib/leap_cli/commands')
-rw-r--r--lib/leap_cli/commands/compile.rb2
-rw-r--r--lib/leap_cli/commands/test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/compile.rb b/lib/leap_cli/commands/compile.rb
index 11e6e35..e96cb6a 100644
--- a/lib/leap_cli/commands/compile.rb
+++ b/lib/leap_cli/commands/compile.rb
@@ -125,7 +125,7 @@ module LeapCli
end
# all other records
- manager.environments.each do |env|
+ manager.environment_names.each do |env|
next if env == 'local'
nodes = manager.nodes[:environment => env]
next unless nodes.any?
diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb
index 024ca25..2584a69 100644
--- a/lib/leap_cli/commands/test.rb
+++ b/lib/leap_cli/commands/test.rb
@@ -46,7 +46,7 @@ module LeapCli; module Commands
assert_config! 'provider.ca.client_certificates.unlimited_prefix'
assert_config! 'provider.ca.client_certificates.limited_prefix'
template = read_file! Path.find_file(:test_client_openvpn_template)
- manager.environments.each do |env|
+ manager.environment_names.each do |env|
vpn_nodes = manager.nodes[:environment => env][:services => 'openvpn']['openvpn.allow_limited' => true]
if vpn_nodes.any?
generate_test_client_cert(provider.ca.client_certificates.limited_prefix) do |key, cert|