lib/cli/services_helper.rb in vmc-0.3.13.beta.2 vs lib/cli/services_helper.rb in vmc-0.3.13.beta.3

- old
+ new

@@ -48,20 +48,26 @@ client.create_service(service, name) display 'OK'.green end def bind_service_banner(service, appname, check_restart=true) - display "Binding Service: ", false + display "Binding Service [#{service}]: ", false client.bind_service(service, appname) display 'OK'.green check_app_for_restart(appname) if check_restart end def unbind_service_banner(service, appname, check_restart=true) - display "Unbinding Service: ", false + display "Unbinding Service [#{service}]: ", false client.unbind_service(service, appname) display 'OK'.green check_app_for_restart(appname) if check_restart + end + + def delete_service_banner(service) + display "Deleting service [#{service}]: ", false + client.delete_service(service) + display 'OK'.green end def random_service_name(service) r = "%04x" % [rand(0x0100000)] "#{service.to_s}-#{r}"