This commit is contained in:
Eric Hanko 2017-06-07 15:41:54 -07:00
Родитель b9df70160e
Коммит 341bcfb538
1 изменённых файлов: 10 добавлений и 7 удалений

Просмотреть файл

@ -4,19 +4,22 @@
### systemsetup ### systemsetup
The systemsetup resource wraps the `/usr/sbin/systemsetup` tool and can be used in The systemsetup resource is a wrapper for `/usr/sbin/systemsetup`. Use the `get` and `set` properties with hashes or
almost exactly the same way as it is used on the command line. strings in order to get or set the desired setting.
Example usage: Example "set" usage:
```ruby ```ruby
systemsetup 'keep machine awake indefinitely' do systemsetup 'keep awake and get time information' do
settings remotelogin: 'On', set sleep: 0,
waitforstartupafterpowerfailure: 0, computersleep: 0,
displaysleep: 0 displaysleep: 0,
harddisksleep: 0
get %w(networktimeserver timezone)
end end
``` ```
#### Available settings to use with the `systemsetup` resource: #### Available settings to use with the `systemsetup` resource:
date <mm:dd:yy> date <mm:dd:yy>