Update usage
This commit is contained in:
Родитель
b9df70160e
Коммит
341bcfb538
17
README.md
17
README.md
|
@ -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>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче