Sha256: 84a6cbb962dd9316210e24b5764c0122b3e67ab9e7c6b8018d29232255665bf5

Contents?: true

Size: 385 Bytes

Versions: 9

Compression:

Stored size: 385 Bytes

Contents

require 'bin_install/ruby/rbenv'
require 'bin_install/ruby/rvm'

module BinInstall
  module Ruby
    def self.required_ruby_version
      Dir.chdir(Dir.pwd) { `cat .ruby-version` }
    end

    def self.ruby_version
      Dir.chdir(Dir.pwd) { `ruby --version` }
    end

    def self.ruby_version_installed?(version)
      ruby_version.start_with?("ruby #{version}")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bin_install-0.0.23 lib/bin_install/ruby.rb
bin_install-0.0.22 lib/bin_install/ruby.rb
bin_install-0.0.21 lib/bin_install/ruby.rb
bin_install-0.0.20 lib/bin_install/ruby.rb
bin_install-0.0.19 lib/bin_install/ruby.rb
bin_install-0.0.18 lib/bin_install/ruby.rb
bin_install-0.0.17 lib/bin_install/ruby.rb
bin_install-0.0.16 lib/bin_install/ruby.rb
bin_install-0.0.15 lib/bin_install/ruby.rb