cookbook 'macosx_gui_login', '~> 1.1.0'
macosx_gui_login (3) Versions 1.1.0 Follow0
Login to Mac OS X GUI
cookbook 'macosx_gui_login', '~> 1.1.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 12 or higher (you can use Chef 11, but sensitive attribute won't work)
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. -
sensitive
- Suppress logging stdout and stderr to Chef-client. Default:true
.
Examples
Login as vagrant user:
macosx_gui_login 'login to vagrant user' do username 'vagrant' password 'vagrant' sensitive true 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', sensitive: true )
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.1.0
- Add sensitive attribute
1.0.1
- Fix #1 Login password is not suppressed in logs
1.0.0
- Initial release
Collaborator Number Metric
1.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.1.0 failed this metric
FC066: Ensure chef_version is set in metadata: macosx_gui_login/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Testing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.0 failed this metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.1.0 failed this metric
FC066: Ensure chef_version is set in metadata: macosx_gui_login/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Testing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.0 failed this metric
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.1.0 passed this metric
Testing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.0 failed this metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number