Class: SourceControl::Darcs
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#get_remote_info, #initialize, #shell
Constructor Details
This class inherits a constructor from SourceControl::Base
Class Method Details
.covers?(path) ⇒ Boolean
6 7 8 9 10 11 12 |
# File 'lib/source_control/darcs.rb', line 6 def self.covers?(path) path_parts = path.split('/') path_parts.length.downto(1) do |n| return true if File.exist? path_parts[0...n].join('/') + '/_darcs' end false end |
Instance Method Details
#command ⇒ Object
4 |
# File 'lib/source_control/darcs.rb', line 4 def command; 'darcs' end |