Skip to content

Instantly share code, notes, and snippets.

@jeremiahsnapp
jeremiahsnapp / gatling_chef
Last active December 27, 2015 02:19
gatling_chef is a command line tool that updates timestamps and re-signs Chef authentication headers in a Gatling http://gatling-tool.org/ simulation file.
#!/usr/bin/env ruby
# encoding: UTF-8
require 'thor'
require 'base64'
require 'openssl'
require 'time'
class GatlingChef < Thor
desc 'update FILE', 'Update timestamps and re-sign Chef authentication ' +