Method: App42::Command::Service#service_unbind

Defined in:
lib/app42/command/service.rb

#service_unbindObject

collect service name and source IP from user and proceed service unbind request



178
179
180
181
182
183
# File 'lib/app42/command/service.rb', line 178

def service_unbind
  @options[:service] = ask_service_name  if @options[:service].nil?
  source_ip = ask_source_ip 'unbind' if is_service_exist? @options[:service]
  res = delete_service_tunnel @options[:service], source_ip 
  exit! if res
end