Class: Harnex::Adapters::Generic

Inherits:
Base
  • Object
show all
Defined in:
lib/harnex/adapters/generic.rb

Constant Summary

Constants inherited from Base

Base::PROMPT_PREFIXES

Instance Attribute Summary

Attributes inherited from Base

#key

Instance Method Summary collapse

Methods inherited from Base

#build_command, #build_send_payload, #infer_repo_path, #inject_exit, #input_state, #send_wait_seconds, #wait_for_sendable, #wait_for_sendable_state?

Constructor Details

#initialize(cli_name, extra_args = []) ⇒ Generic

Returns a new instance of Generic.



4
5
6
7
# File 'lib/harnex/adapters/generic.rb', line 4

def initialize(cli_name, extra_args = [])
  @cli_name = cli_name
  super(cli_name, extra_args)
end

Instance Method Details

#base_commandObject



9
10
11
# File 'lib/harnex/adapters/generic.rb', line 9

def base_command
  [@cli_name]
end