Class: KuberKit::Actions::ServiceGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/kuber_kit/actions/service_generator.rb

Instance Method Summary collapse

Instance Method Details

#call(service_name, path) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/kuber_kit/actions/service_generator.rb', line 9

def call(service_name, path)
  expanded_path = File.expand_path(path)
  puts expanded_path
  action_handler.call(local_shell, service_name, expanded_path)

  true
rescue KuberKit::Error => e
  ui.print_error("Error", e.message)
  
  false
end