vendor/gems/bones-2.4.2/lib/bones/app/file_manager.rb
# If the source is a repository this method returns the type of
# repository. This will be :git for Git repositories and :svn for
# Subversion repositories. Otherwise, +nil+ is returned.
#
If the source is a repository this method returns the type of
repository. This will be :git for Git repositories and :svn for
Subversion repositories. Otherwise, +nil+ is returned.
If the source is a repository this method returns the type of repository . This will be : git for Git repositories and : svn for Subversion repositories . Otherwise + nil + is returned .
def repository
    return :git if source =~ %r/\.git\/?$/i
    return :svn if source =~ %r/^(svn(\+ssh)?|https?|file):\/\//i
    nil
  end
def repository return :git if source =~ %r/ \. git \/ ?$ /i return :svn if source =~ %r/ ^(svn( \+ ssh)?|https?|file): \/ \/ /i nil end
If the source is a repository this method returns the type of
repository.
If the source is a repository this method returns the type of repository .