vmc-ng/lib/vmc/cli/app.rb in vmc-0.4.0.beta.60 vs vmc-ng/lib/vmc/cli/app.rb in vmc-0.4.0.beta.61

- old
+ new

@@ -545,19 +545,17 @@ if v2? host, domain_name = simple.split(".", 2) domain = - client.current_space.domains.find { |d| - d.name == domain_name - } + client.current_space.domains(0, :name => domain_name).first fail "Invalid domain '#{domain_name}'" unless domain - route = client.routes.find { |r| - r.host == host && r.domain == domain - } + route = client.routes(0, :host => host).find do + r.domain == domain + end unless route route = client.route with_progress("Creating route #{c(simple, :name)}") do @@ -871,10 +869,10 @@ if framework.name == "standalone" detected_runtimes = detector.detect_runtimes else - detected_runtimes = detector.runtimes(framework) || [] + detected_runtimes = detector.runtimes(framework) end if detected_runtimes.size == 1 default_runtime = detected_runtimes.first end