Class: Repository::Filesystem

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

Overview

Since:

  • 0.8.0

Constant Summary

Constants inherited from Repository

IDENTIFIER_MAX_LENGTH

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, #entries, #entry, #extra_info, factory, fetch_changesets, find_by_identifier_param, #find_changeset_by_name, #find_committer_user, #identifier=, #identifier_frozen?, #identifier_param, #latest_changeset, #latest_changesets, #merge_extra_info, #name, #password, #password=, #properties, #relative_path, #repo_create_validation, #repo_log_encoding, #report_last_commit, repository_class, #root_url=, #same_commits_in_scope, scan_changesets_for_issue_ids, #scan_changesets_for_issue_ids, #scm, #scm_adapter, scm_available, scm_command, #scm_name, scm_version_string, #set_as_default?, #stats_by_author, #supports_annotate?, #supports_cat?, #supports_directory_revisions?, #supports_revision_graph?, #tags, #url=

Methods included from Redmine::SafeAttributes

#delete_unsafe_attributes, #safe_attribute?, #safe_attribute_names, #safe_attributes=

Methods included from Redmine::Ciphering

cipher_key, decrypt_text, encrypt_text, logger

Class Method Details

.human_attribute_name(attribute_key_name, *args) ⇒ Object

Since:

  • 1.2.0



26
27
28
29
30
31
32
# File 'app/models/repository/filesystem.rb', line 26

def self.human_attribute_name(attribute_key_name, *args)
  attr_name = attribute_key_name.to_s
  if attr_name == "url"
    attr_name = "root_directory"
  end
  super(attr_name, *args)
end

.scm_adapter_classObject

Since:

  • 1.2.0



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

#fetch_changesetsObject



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

def fetch_changesets
  nil
end

#supports_all_revisions?Boolean

Returns:

  • (Boolean)

Since:

  • 1.2.0



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

def supports_all_revisions?
  false
end