Code Monkey home page Code Monkey logo

fpm-tng's Introduction

fpm-tng

The next generation of effing package management on Chef.

Usage

This cookbook installs fpm to a given Ruby. It also provides some useful LWRPs to help build packages in a Chef friendly manner.

LWRPs

fpm_tng_package

Builds a package using fpm. All options available via fpm --help are available as attributes within the LWRP. Dashes are simply replaced with underscores. For example, lets build a rails gem:

fpm_tng_package 'rails' do
  input_type 'gem'
  output_type 'deb'
  version '3.2.6'
  input_args 'rails'
end

fpm_tng_gemdeps

Most times gems will requre dependencies. These can be autobuilt:

fpm_tng_gemdeps 'rails' do
  version '3.2.6'
end

Attributes

  • default[:fpm_tng][:install][:gems] = %w(fpm)
  • default[:fpm_tng][:install][:packages] = []
  • default[:fpm_tng][:build_dir] = '/opt/fpm-build'
  • default[:fpm_tng][:package_dir] = '/opt/fpm-pkgs'
  • default[:fpm_tng][:exec] = File.join(node.languages.ruby.bin_dir, 'fpm')
  • default[:fpm_tng][:gem] = node.languages.ruby.gem_bin

Infos

fpm-tng's People

Contributors

agoddard avatar chrisroberts avatar tas50 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.