class DTK::Client::BaseCommandHelper

Public Class Methods

new(command,context_params=nil) click to toggle source
# File lib/commands/common/thor/base_command_helper.rb, line 20
def initialize(command,context_params=nil)
  @command        = command
  @context_params = context_params
  @options        = command.options
end

Public Instance Methods

print_external_dependencies(external_dependencies, location) click to toggle source

Private Instance Methods

context_params() click to toggle source
# File lib/commands/common/thor/base_command_helper.rb, line 38
def context_params()
  @context_params ||  raise(DtkError, "[ERROR] @context_params is nil")
end
get_namespace_and_name(*args) click to toggle source
# File lib/commands/common/thor/base_command_helper.rb, line 46
def get_namespace_and_name(*args)
  @command.get_namespace_and_name(*args)
end
post(*args) click to toggle source
# File lib/commands/common/thor/base_command_helper.rb, line 54
def post(*args)
  @command.post(*args)
end
rest_url(*args) click to toggle source
# File lib/commands/common/thor/base_command_helper.rb, line 50
def rest_url(*args)
  @command.rest_url(*args)
end
retrieve_arguments(mapping, method_info = nil) click to toggle source
# File lib/commands/common/thor/base_command_helper.rb, line 42
def retrieve_arguments(mapping, method_info = nil)
  context_params.retrieve_arguments(mapping, method_info || @command.method_argument_names)
end