Class: Repository::Filesystem

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

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_all_revisions?, #supports_annotate?, #supports_cat?, #supports_directory_revisions?, #supports_revision_graph?, #tags, #url=, #valid_name?

Methods included from Redmine::SafeAttributes

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

Methods included from Redmine::Ciphering

cipher_key, decrypt_text, encrypt_text, included, logger

Class Method Details

.human_attribute_name(attribute_key_name, *args) ⇒ Object



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

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



36
37
38
# File 'app/models/repository/filesystem.rb', line 36

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

.scm_nameObject



40
41
42
# File 'app/models/repository/filesystem.rb', line 40

def self.scm_name
  'Filesystem'
end

Instance Method Details

#fetch_changesetsObject



48
49
50
# File 'app/models/repository/filesystem.rb', line 48

def fetch_changesets
  nil
end

#supports_history?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'app/models/repository/filesystem.rb', line 44

def supports_history?
  false
end