lib/cli/commands/services.rb in af-0.3.18.3 vs lib/cli/commands/services.rb in af-0.3.18.4

- old
+ new

@@ -40,13 +40,13 @@ picked_name = true end if client.infra_supported? unless no_prompt || @options[:infra] - @options[:infra] = VMC::Cli::InfraHelper.name_for_description( + @options[:infra] = client.infra_name_for_description( ask("Select Infrastructure", - :indexed => true, :choices => VMC::Cli::InfraHelper.infra_descriptions)) + :indexed => true, :choices => client.infra_descriptions)) end end create_service_banner(service, name, picked_name, @options[:infra]) appname = @options[:bind] unless appname @@ -129,10 +129,10 @@ raise VMC::Client::AuthError unless client.logged_in? infra_name = info[:infra] ? info[:infra][:name] : default_infra if infra_name - err "Infra '#{infra_name}' is not valid" unless VMC::Cli::InfraHelper.valid?(infra_name) + err "Infra '#{infra_name}' is not valid" unless client.infra_valid?(infra_name) end if not tunnel_pushed?(infra_name) display "Deploying tunnel application '#{tunnel_appname(infra_name)}'."