Sha256: 973aef2a967372ede84e4cbf4c83bd59dc62885ba7016cc67850061539e32f48

Contents?: true

Size: 472 Bytes

Versions: 23

Compression:

Stored size: 472 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))

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
kuber_kit-0.3.11 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.10 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.9 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.8 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.7 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.6 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.5 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.4 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.3 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.2 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.1 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.3.0 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.2.9 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.2.8 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.2.7 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.2.6 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.2.5 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.2.4 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.2.3 lib/kuber_kit/actions/env_file_reader.rb
kuber_kit-0.2.2 lib/kuber_kit/actions/env_file_reader.rb