Mixlibrary-Core
Wraps some provider functionality from chef into easily consumable ruby classes that do not have the extra baggage of being dependent on Chef data objects. Node object, Environment etc.
Installation
Add this line to your application's Gemfile:
gem 'mixlibrary-core'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install mixlibrary-core
How to Install via Chef Recipe
Documentation
- Uses yard to document classes and methods. Generate docs or automatic documentation: http://www.rubydoc.info
-
rake doc
-
Usage
Windows Oriented
Powershell Scripts
Needed ability to execute powershell scripts and get the powershell process back. So to execute a powershell script:
require 'mixlibrary/core/apps/shell'
script= <<-EOF
write-host "Hello 'World'"
EOF
procobj = Mixlibrary::Core::Shell.windows_script_out!(:powershell,script)
Batch
Not Implemented yet
Linux Oriented
Contributing
# Run All the Tests on your platform and build the gem
bundle install
bundle exec rake
- Fork it (http://github.com//mixlibrary-core/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request