Sha256: 98b3ec739b3181b7e8e4b64946503d4d39f7c937db7795963a359cd0d453ffc3
Contents?: true
Size: 408 Bytes
Versions: 11
Compression:
Stored size: 408 Bytes
Contents
module Dev class Scm attr_accessor :scm_type def initialize @scm_type="?" @scm_type="svn" if File.exists?(".svn") @scm_type="git" if File.exists?(".git") end def file_tracked?(file) if @scm_type=="git" call=Dev::SystemCall.new("git ls-files #{file} -error_unmatch") return true if call.status==0 end false end end # class Scm end # module Dev
Version data entries
11 entries across 11 versions & 1 rubygems