Class: Repository::Filesystem

Inherits:
Repository
  • Object
show all
Defined in:
app/models/repository/filesystem.rb

Constant Summary

ATTRIBUTE_KEY_NAMES =
{
  "url"          => "Root directory",
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Repository

available_scm, #branches, #cat, #committer_ids=, #committers, #default_branch, #diff, #diff_format_revisions, #entry, factory, fetch_changesets, #find_changeset_by_name, #find_committer_user, #latest_changeset, #latest_changesets, #password, #password=, #properties, #relative_path, #repo_log_encoding, #root_url=, #scan_changesets_for_issue_ids, scan_changesets_for_issue_ids, #scm, #scm_adapter, scm_available, scm_command, #scm_name, scm_version_string, #supports_annotate?, #supports_cat?, #supports_directory_revisions?, #tags, #url=

Methods included from Redmine::Ciphering

cipher_key, decrypt_text, encrypt_text, included

Class Method Details

.human_attribute_name(attribute_key_name) ⇒ Object



30
31
32
# File 'app/models/repository/filesystem.rb', line 30

def self.human_attribute_name(attribute_key_name)
  ATTRIBUTE_KEY_NAMES[attribute_key_name] || super
end

.scm_adapter_classObject



34
35
36
# File 'app/models/repository/filesystem.rb', line 34

def self.scm_adapter_class
  Redmine::Scm::Adapters::FilesystemAdapter
end

.scm_nameObject



38
39
40
# File 'app/models/repository/filesystem.rb', line 38

def self.scm_name
  'Filesystem'
end

Instance Method Details

#entries(path = nil, identifier = nil) ⇒ Object



46
47
48
# File 'app/models/repository/filesystem.rb', line 46

def entries(path=nil, identifier=nil)
  scm.entries(path, identifier)
end

#fetch_changesetsObject



50
51
52
# File 'app/models/repository/filesystem.rb', line 50

def fetch_changesets
  nil
end

#supports_all_revisions?Boolean



42
43
44
# File 'app/models/repository/filesystem.rb', line 42

def supports_all_revisions?
  false
end