Sha256: d7ef8c2a9768d000815f4544b7c9e9278467dd5e0b82b1d96ebe02c756edc951

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

require 'json'

class KuberKit::Actions::EnvFileReader
  include KuberKit::Import[
    "shell.local_shell",
    "ui",
    env_file_reader: "env_file_reader.action_handler",
  ]

  Contract Symbol, Hash => Any
  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))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kuber_kit-0.1.7 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.1.6 lib/kuber_kit/actions/env_file_reader.rb