Module: RepositoryManager

Defined in:
lib/generators/repository_manager/install_generator.rb,
lib/repository-manager.rb,
lib/repository_manager/engine.rb,
lib/repository_manager/version.rb,
lib/repository_manager/exceptions.rb,
lib/repository_manager/has_repository.rb

Overview

:nodoc:

Defined Under Namespace

Modules: HasRepository Classes: Engine, InstallGenerator, ItemExistException, NestedSharingException, PermissionException, RepoFile, RepoFolder, RepoItem, RepositoryManagerException, Sharing, SharingsMember

Constant Summary collapse

VERSION =
'0.2.11'
@@default_repo_item_permissions =
{ can_read: true, can_create: false, can_update:false, can_delete:false, can_share: false }
@@default_sharing_permissions =
{ can_add: false, can_remove: false }
@@default_zip_path =
true
@@accept_nested_share =
false
@@has_paper_trail =
false
@@auto_overwrite_item =
false
@@storage =
:file

Class Method Summary collapse

Class Method Details

.protected_attributes?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/repository-manager.rb', line 31

def protected_attributes?
  Rails.version < '4' || defined?(ProtectedAttributes)
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



27
28
29
# File 'lib/repository-manager.rb', line 27

def setup
  yield self
end