0.0
No commit activity in last 3 years
No release in over 3 years
MixLib for creating Core libraries in ruby for automating machines. This is an abstraction away from using Chef Providers directly to give us access to the lower layers of Chef implementation to meet additional use cases.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 5.5
~> 10.1
~> 0.8

Runtime

< 13, >= 11.16
 Project Readme

Mixlibrary-Core

GitHub Documentation

Gem Version Build Status - Linux License Build status - Windows

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
  1. Fork it (http://github.com//mixlibrary-core/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request