Method: Mac::Exec#ssh_service_restart
- Defined in:
- lib/beaker/host/mac/exec.rb
#ssh_service_restart ⇒ Result
Restarts the SSH service
11 12 13 14 15 |
# File 'lib/beaker/host/mac/exec.rb', line 11 def ssh_service_restart launch_daemons_plist = '/System/Library/LaunchDaemons/ssh.plist' exec(Beaker::Command.new("launchctl unload #{launch_daemons_plist}")) exec(Beaker::Command.new("launchctl load #{launch_daemons_plist}")) end |