lib/beaker/host/mac/exec.rb in beaker-4.42.0 vs lib/beaker/host/mac/exec.rb in beaker-5.0.0

- old
+ new

@@ -1,9 +1,9 @@ module Mac::Exec include Beaker::CommandFactory - def touch(file, abs=true) + def touch(file, abs = true) (abs ? '/usr/bin/touch' : 'touch') + " #{file}" end # Restarts the SSH service # @@ -22,17 +22,17 @@ def ssh_permit_user_environment ssh_config_file = '/etc/sshd_config' ssh_config_file = '/private/etc/ssh/sshd_config' if /^osx-/.match?(self['platform']) exec(Beaker::Command.new("echo '\nPermitUserEnvironment yes' >> #{ssh_config_file}")) - ssh_service_restart() + ssh_service_restart end - # Checks if selinux is enabled + #  Checks if selinux is enabled # selinux is not availble on OS X # # @return [Boolean] false - def selinux_enabled?() + def selinux_enabled? false end # Update ModifiedDate on a file # @param [String] file Path to the file