cookbook 'macosx_gui_login', '= 1.0.0'
macosx_gui_login (3) Versions 1.0.0 Follow0
Login to Mac OS X GUI
cookbook 'macosx_gui_login', '= 1.0.0', :supermarket
knife supermarket install macosx_gui_login
knife supermarket download macosx_gui_login
Mac OS X GUI Login Cookbook
This cookbook logs into Mac OS X GUI via AppleScript.
Requirements
- Chef 11.14 or higher (sensitive attribute introduced)
Platforms
- Mac OS X - Mountain Lion (10.8) or higher
Usage
Include cookbook as a dependency before calling macosx_gui_login
resource.
Actions
-
run
- Logs into GUI.
Attributes
-
username
(required) - Username to login as. Defaults to the name of the resource block. -
password
(required) - Password of user.
Examples
Login as vagrant user:
macosx_gui_login 'login to vagrant user' do username 'vagrant' password 'vagrant' action :run end
ChefSpec Matchers
This cookbook includes custom ChefSpec matchers you can use to test
your own cookbooks.
Example Matcher Usage
expect(chef_run).to run_macosx_gui_login('login to vagrant user').with( username: 'vagrant' password: 'vagrant' )
Cookbook Matchers
- run_macosx_gui_login(resource_name)
Getting Help
- Ask specific questions on Stack Overflow.
- Report bugs and discuss potential features in Github issues.
Contributing
Please refer to CONTRIBUTING.
License
MIT - see the accompanying LICENSE
file for details.
Changelog
1.0.0
- Initial release
Foodcritic Metric
1.0.0 passed this metric
1.0.0 passed this metric