Skip to content

Instantly share code, notes, and snippets.

@pgibler
pgibler / gist:71b558315ab97c160b59
Created October 5, 2014 20:33
Install ruby at a patchlevel in puppet
$ruby_version = '2.0.0'
$ruby_patchlevel = 'p451'
$full_ruby_version = "ruby-${ruby_version}-${ruby_patchlevel}"
class { 'rvm': }
# Make rvm install ruby at the version and patchlevel we want.
# Here, we install ruby-2.0.0-p451
# Set RVM to use it by default
rvm_system_ruby { $full_ruby_version:
@pgibler
pgibler / gist:4cecc4dcd41b288756cd
Created October 5, 2014 20:32
Gist setup ruby by patchlevel
$ruby_version = '2.0.0'
$ruby_patchlevel = 'p451'
$full_ruby_version = "ruby-${ruby_version}-${ruby_patchlevel}"
class { 'rvm': }
# Make rvm install ruby at the version and patchlevel we want.
# Here, we install ruby-2.0.0-p451
# Set RVM to use it by default
rvm_system_ruby { $full_ruby_version:
@pgibler
pgibler / gist:c4113f51ec6f1983562e
Created October 5, 2014 20:32
Gist setup ruby by patchlevel
$ruby_version = '2.0.0'
$ruby_patchlevel = 'p451'
$full_ruby_version = "ruby-${ruby_version}-${ruby_patchlevel}"
class { 'rvm': }
# Make rvm install ruby at the version and patchlevel we want.
# Here, we install ruby-2.0.0-p451
# Set RVM to use it by default
rvm_system_ruby { $full_ruby_version:
@pgibler
pgibler / controllers_rb.patch
Created July 26, 2011 16:08
Patches controller.rb in Riddle to make it compta
Index: ../../../../../Ruby187/lib/ruby/gems/1.8/gems/riddle-1.3.3/lib/riddle/controller.rb
===================================================================
--- ../../../../../Ruby187/lib/ruby/gems/1.8/gems/riddle-1.3.3/lib/riddle/controller.rb (revision )
+++ ../../../../../Ruby187/lib/ruby/gems/1.8/gems/riddle-1.3.3/lib/riddle/controller.rb (revision )
@@ -31,8 +31,8 @@
check_for_configuration_file
cmd = "#{searchd} --pidfile --config \"#{@path}\""
-
+