Sha256: ea84f0552277797ba5f9c36fb58986c7d074c326b724c1d346521ff3ea2ffd83

Contents?: true

Size: 430 Bytes

Versions: 95

Compression:

Stored size: 430 Bytes

Contents

class KuberKit::Actions::ServiceReader
  include KuberKit::Import[
    "shell.local_shell",
    "ui",
    service_reader: "service_reader.action_handler",
  ]

  Contract Symbol, Hash => Any
  def call(service_name, options)
    result = service_reader.call(local_shell, service_name)

    ui.print_info(service_name.to_s, result)

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

    false
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
kuber_kit-1.3.8 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.3.7 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.1.8 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.3.6 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.1.7 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.3.5 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.3.4 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.1.6 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.3.3 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.3.2 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.1.5 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.3.1 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.3.0 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.1.4 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.2.7 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.2.6 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.2.5 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.2.4 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.2.2 lib/kuber_kit/actions/service_reader.rb
kuber_kit-1.1.2 lib/kuber_kit/actions/service_reader.rb