class KuberKit::Actions::EnvFileReader

Public Instance Methods

call(env_file_name, options) click to toggle source
# 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