class Unix::Host

Public Class Methods

new(name, host_hash, options) click to toggle source
Calls superclass method Beaker::Host::new
# File lib/beaker/host/unix.rb, line 57
def initialize name, host_hash, options
  super

  @external_copy_base = nil
end

Public Instance Methods

determine_ssh_server() click to toggle source

Determines which SSH Server is in use on this host

@note This method is mostly a placeholder method, since only :openssh

can be returned at this time. Checkout {Windows::Host#determine_ssh_server}
for an example where work needs to be done to determine the answer

@return [Symbol] Value for the SSH Server in use

# File lib/beaker/host/unix.rb, line 33
def determine_ssh_server
  :openssh
end
external_copy_base() click to toggle source
# File lib/beaker/host/unix.rb, line 37
def external_copy_base
  @external_copy_base ||= begin
    if self['platform'].variant == 'solaris' && self['platform'].version == '10'
      # Solaris 10 uses / as the root user directory. Solaris 11 uses /root (like most).
      '/'
    else
      '/root'
    end
  end
end
platform_defaults() click to toggle source
# File lib/beaker/host/unix.rb, line 17
def platform_defaults
  h = Beaker::Options::OptionsHash.new
  h.merge({
            'user' => 'root',
            'group' => 'root',
            'pathseparator' => ':',
          })
end
skip_set_env?() click to toggle source

Tells you whether a host platform supports beaker’s

{Beaker::HostPrebuiltSteps#set_env} method

@return [String,nil] Reason message if set_env should be skipped,

nil if it should run.
# File lib/beaker/host/unix.rb, line 53
def skip_set_env?
  nil
end