/reattach-to-user-namespace-chef

A Chef cookbook for the reattach-to-user-namespace OS X utility

Primary LanguageRuby

Reattach To User Namespace Cookbook

Cookbook Version Build Status Code Climate Coverage Status

A Chef cookbook for the reattach-to-user-namespace OS X utility.

Requirements

This cookbook requires an OS X node and depends on the homebrew community cookbook.

Usage

Either add the included default recipe to your run list or implement the custom resources in a recipe of your own.

Recipes

default

Performs an attribute-based installation of RtUN.

Attributes

default

The default behavior is to install via :homebrew, but this can be overridden if you wish to install via :direct download and compile from GitHub:

default['reattach_to_user_namespace']['app']['source'] = nil

If desired, a specific version of RtUN can be installed rather than the latest:

default['reattach_to_user_namespace']['app']['version'] = nil

Resources

reattach_to_user_namespace_app

Manages installation of the RtUN utility.

Syntax:

reattach_to_user_namespace_app 'default' do
  source :homebrew
  version '1.2'
  action :install
end

Actions:

Action Description
:install Install the app
:upgrade Upgrade the app
:remove Remove the app

Properties:

Property Default Description
source :homebrew Install via :homebrew or :direct GitHub DL
version nil Install a specific version instead of the latest
action :install Action(s) to perform

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Add tests for the new feature; ensure they pass (rake)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

License & Authors

Copyright 2016, Jonathan Hartman

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.