module EacRubyUtils::Envs::SshEnv::DashoOptions::InstanceMethods

def nodasho_options

def nodasho_options
  self.class.nodasho_options
end

def ssh_command_line_dasho_args

def ssh_command_line_dasho_args
  r = []
  uri.query_values&.each do |k, v|
    r += ['-o', "#{k}=#{v}"] unless nodasho_options.include?(k)
  end
  r
end

def ssh_command_line_nodasho_args

def ssh_command_line_nodasho_args
  nodasho_options.flat_map do |option_name|
    uri_query_value(option_name).if_present([]) do |option_value|
      send("ssh_command_line_#{option_name.underscore}_args", option_value)
    end
  end
end

def uri_query_value(name)

def uri_query_value(name)
  uri.query_values.if_present { |v| v[name] }
end