Sha256: b47079003173967b693a27c6f8d970b99786dbddb9c4d6ad7805eab31a3e6064

Contents?: true

Size: 449 Bytes

Versions: 11

Compression:

Stored size: 449 Bytes

Contents

class KuberKit::Actions::ServiceGenerator
  include KuberKit::Import[
    "shell.local_shell",
    "service_generator.action_handler",
    "ui",
  ]

  Contract Symbol, String => Any
  def call(service_name, path)
    expanded_path = File.expand_path(path)
    puts expanded_path
    action_handler.call(local_shell, service_name, expanded_path)

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kuber_kit-1.3.9 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.3.8 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.3.7 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.1.8 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.3.6 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.1.7 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.3.5 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.3.4 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.1.6 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.3.3 lib/kuber_kit/actions/service_generator.rb
kuber_kit-1.3.2 lib/kuber_kit/actions/service_generator.rb