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

Version Path
dev-1.0.15 lib/dev/Scm.rb
dev-1.0.14 lib/dev/Scm.rb
dev-1.0.13 lib/dev/Scm.rb
dev-1.0.12 lib/dev/Scm.rb
dev-1.0.11 lib/dev/Scm.rb
dev-1.0.10 lib/dev/Scm.rb
dev-1.0.9 lib/dev/Scm.rb
dev-1.0.8 lib/dev/Scm.rb
dev-1.0.7 lib/dev/Scm.rb
dev-1.0.6 lib/dev/Scm.rb
dev-1.0.5 lib/dev/Scm.rb