Class: KuberKit::Actions::EnvFileReader

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

Instance Method Summary collapse

Instance Method Details

#call(env_file_name, options) ⇒ Object



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

def call(env_file_name, options)
  result = env_file_reader.call(local_shell, env_file_name)
  ui.print_info(env_file_name.to_s, JSON.pretty_generate(result))

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