Giter VIP home page Giter VIP logo

poise-boiler's Introduction

Poise-Boiler

Build Status Gem Version Code Climate Gemnasium License

Poise-boiler is a set of helpers to reduce boilerplate in Poise/Halite style gems.

Dependencies

poise-boiler depends on a base set of useful gems for building Halite cookbooks. Make sure you only add it as a development dependency:

spec.add_development_dependency('poise-boiler', '~> 1.0')

spec_helper

The spec_helper sets up chefspec, rspec-its, and simplecov. Coverage reporting is also configured for CodeClimate and CodeCov if the relevant environment variables are set. The Halite spec helper is also enabled by default:

require 'poise_boiler/spec_helper'

You can disable the Halite spec helper if needed:

require 'poise_boiler'
PoiseBoiler.include_halite_spec_helper = false
require 'poise_boiler/spec_helper'

Rakefile

The Rakefile helper sets up the standard gem tasks, the Halite helper tasks, and a spec task to run unit tests.

require 'poise_boiler/rakefile'

Rake Tasks

test

Run all tests, specs, foodcritic, and kitchen.

spec

Run Rspec tests.

badges

Generate README badges for a project.

debug, quiet, verbose

Set the relevant mode environment variables. Can be abbreviated d, q, and v.

check

List uncommitted file changes and commits since the last release.

checkall

Run quiet check for all projects. This is specific to my folder layout and is less likely to work for others.

travis

Run tests for Travis CI. This does some setup and then runs rake test.

release, release:minor, release:major

Create a new release and push toe RubyGems and Supermarket.

.kitchen.yml

The .kitchen.yml helper sets up a default driver and default values for platforms and chef versions (used by knife-travis).

---
#<% require 'poise_boiler' %>
<%= PoiseBoiler.kitchen %>

suites:
- name: default
  run_list:
  - recipe[mycook]

You can also quickly customize the platforms using platform aliases:

<%= PoiseBoiler.kitchen(platforms: 'ubuntu') %>

You can always redefine a top-level key that has a default setting as well:

#<% require 'poise_boiler' %>
<%= PoiseBoiler.kitchen %>

platforms:
- name: arch

suites:
- name: default
  run_list:
  - recipe[mycook]

Available Aliases

  • ubuntu – ubuntu-12.04, ubuntu-14.04
  • rhel – centos-6.5, ubuntu-7
  • centos – rhel
  • linux – ubuntu, rhel

License

Copyright 2015-2016, Noah Kantrowitz

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.

poise-boiler's People

Contributors

coderanger avatar jkeiser avatar mwrock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

poise-boiler's Issues

The requested URL returned error: 404 Not Found

trying to work on poise-monit, bundle exec kitchen converge gives me:

-----> Creating <default-centos-6>...
       Bringing machine 'default' up with 'virtualbox' provider...
       ==> default: Box 'opscode-centos-6' could not be found. Attempting to find and install...
           default: Box Provider: virtualbox
           default: Box Version: >= 0
       ==> default: Box file was not detected as metadata. Adding it directly...
       ==> default: Adding box 'opscode-centos-6' (v0) for provider: virtualbox
           default: Downloading: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6_chef-provisionerless.box
An error occurred while downloading the remote file. The error
       message, if any, is reproduced below. Please fix this error and try
       again.

       The requested URL returned error: 404 Not Found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.