New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sporf

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sporf

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Sporf

Parrallel ssh commands over chef servers with rspec-like output. sporf uses the exit codes of a command to determine whether it qualifies as a success or failure.

Installation

Requirements

  • Ruby 1.9.3+
  • Knife configuration file

Install the gem:

gem install sporf

Usage

sporf test COMMAND [QUERY] or sporf -t COMMAND [QUERY]

Test command

Test if a given command returns 0 on all nodes:

sporf -t 'test -d /foo/bar/'

Test if a given command does not return 0 on nodes:

sporf -t 'php -i | grep -i memcached' --invert

Test if a given command returns 0 on all nodes, also print out the STDOUT of successfull commands:

sporf -t 'cat /etc/apache2/conf.d/ssl' --print-success

Test if a given command returns 0, scoped on certain nodes (with knife search syntax):

sporf -t 'test -f /etc/apache2/conf.d/ssl' 'recipe:apache AND listen_ports:443'

Note

sporf is not meant to modify server configurations, only to test how a server replies on a given (non-destructive) command. Use with caution.

To-do

  • Make the output truly RSpec compatible, so we can use RSpec formatters
  • Stop forcing root user, system user (with sudo) should also work
  • sporf should not be limited to Chef (main reason this isn't a knife plugin)

Contributing

Bug reports, feature requests and test implementations are more than welcome. Please use our Github account for this.

FAQs

Package last updated on 26 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc