dlasky / chef-node

Chef API client for nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changelog

  • added support for PUTs (some modes require puts)
  • added more generic support for various url formats chef needs
  • added single endpoint support (simplifies URL concatenation for individual calls)
  • callback now reutrns raw body for situations where you may not want to parse it

Usage:

var chef = require('chef')

.auth(username, path_to_pemfile, baseUrl)

.request(apiTarget, body, method, callback)

  • apiTarget (ie node/NODENAME)
  • body - JSON object to post or put (omit for get)
  • method - 'PUT','POST','GET'
  • callback - standard 'request' callback (err,resp,body)

About

Chef API client for nodejs


Languages

Language:CoffeeScript 100.0%