Skip to content

Instantly share code, notes, and snippets.

View kubicek's full-sized avatar

Jiří Kubíček kubicek

View GitHub Profile
@coffeeaddict
coffeeaddict / README.md
Last active December 11, 2015 04:39
Testing ruote participants with rspec

Testing participants

Introduction

Testing a participant is gory-detail-stuff. You must know a lot about the internals of Ruote. Because; In order to 'test' a participant, we have to mimic the environment the participant lives and is executed in.

Setup

Since we are isolating the participant in our experiment^W... tests we have to prevent the participant from communicating with Ruote. In order to do so we have replace the #reply function with an own singleton.

@jedi4ever
jedi4ever / gemspec file
Created May 15, 2011 18:34
Patch to take mcollective gitcode and turn it into a gem for mcollective-client
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = "mcollective-client"
s.version = "1.0.2"
s.platform = Gem::Platform::RUBY
s.authors = ["RI Pienaar"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/puppetlabs/marionette-collective"
s.summary = %q{Mcollective client}
s.description = %q{Interact with mcollective}
@mrflip
mrflip / gist:766608
Created January 5, 2011 17:15
Elasticsearch shell config
We couldn’t find that file to show.
#
# ElasticSearch config file
#
#
# There's no call to see the full current config, but
# modules dump their config variables on startup
#
cluster:
@karmi
karmi / post-receive-deploy.rb
Created June 17, 2010 13:21
Example script to deploy a Rails application via Git post-receive hook
#!/usr/bin/env ruby
# Example script to deploy a Rails application via Git post-receive hook
#
# INSTALL
#
# $ curl http://gist.github.com/442106.txt -o post-receive
# $ mv post-receive path/to/to/your/repo.git/hooks/post-receive
# $ chmod +x post-receive