Sha256: 372a509d7a9efd8b625a1177868207858ff8ceb10a5559e915c43b2ba91ed6df
Contents?: true
Size: 335 Bytes
Versions: 2
Compression:
Stored size: 335 Bytes
Contents
module Stairs module EnvAdapters class RVM def self.present? `which rvm` $?.success? end def set(name, value) Util::FileUtils.replace_or_append( Regexp.new("^export #{name}=(.*)$"), "export #{name}=#{value}", ".rvmrc", ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stairs-0.3.0 | lib/stairs/env_adapters/rvm.rb |
stairs-0.2.0 | lib/stairs/env_adapters/rvm.rb |