class Unix::Host
Public Class Methods
Source
# File lib/beaker/host/unix.rb, line 57 def initialize name, host_hash, options super @external_copy_base = nil end
Calls superclass method
Beaker::Host::new
Public Instance Methods
Source
# File lib/beaker/host/unix.rb, line 33 def determine_ssh_server :openssh end
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
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
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
Source
# File lib/beaker/host/unix.rb, line 53 def skip_set_env? nil end
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.