Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Work in Ruby 1.8 as well as 1.9

  • Loading branch information...
commit d597ff6c8966f4b5fb5d4d83711dfab771c436a7 1 parent a514d4f
fritz fritz authored

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. +8 0 lib/puppet/provider/rvm_system_ruby/rvm_system_ruby.rb
8 lib/puppet/provider/rvm_system_ruby/rvm_system_ruby.rb
... ... @@ -1,3 +1,11 @@
  1 +# Backport :lines to 1.8 if necessary
  2 +# See http://oreilly.com/ruby/excerpts/ruby-best-practices/writing-backward-compatible.html
  3 +class String
  4 + unless "".respond_to?(:lines)
  5 + alias_method :lines, :to_a
  6 + end
  7 +end
  8 +
1 9 Puppet::Type.type(:rvm_system_ruby).provide(:rvm) do
2 10 desc "Ruby RVM support."
3 11

0 comments on commit d597ff6

Please sign in to comment.
Something went wrong with that request. Please try again.