Skip to content

Instantly share code, notes, and snippets.

@citizen428
Created November 22, 2011 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save citizen428/1386882 to your computer and use it in GitHub Desktop.
Save citizen428/1386882 to your computer and use it in GitHub Desktop.
A little wrapper around Pow's HTTP requests for status.json and config.jsom
#!/usr/bin/env ruby
require 'json'
unless %w(status config).include?(ARGV[0])
puts "Usage: #{File.basename($0)} status|config"
exit 1
end
jj JSON.parse(`curl -s -H host:pow localhost/#{ARGV[0]}.json`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment