Sha256: 1f823cb6b2bb76d7a1896c3612fb36ee5e64d207784a676d2c6e60d44612b66f
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 Bytes
Contents
# enconding: utf-8 module Mutx module Platforms class Ruby def self.is_there_gemfile_lock? begin IO.read("#{Dir.pwd}/Gemfile.lock") rescue false end end def self.using_gemfile? begin IO.read("#{Dir.pwd}/Gemfile") rescue false end end def self.using_bundler? if self.using_gemfile? self.delete_gemfile_lock and true end end def self.delete_gemfile_lock begin File.delete("#{Dir.pwd}/Gemfile.lock") rescue end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mutx-0.1.4 | lib/mutx/platforms/ruby.rb |
mutx-0.1.3 | lib/mutx/platforms/ruby.rb |