Class: Avm::Git::Organize::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/git/organize/repository.rb

Instance Method Summary collapse

Instance Method Details

#all_branchesObject



34
35
36
# File 'lib/avm/git/organize/repository.rb', line 34

def all_branches
  eac_git_local.execute!
end

#collect_originalsObject



27
28
29
30
31
32
# File 'lib/avm/git/organize/repository.rb', line 27

def collect_originals
  collect_references_with_pattern(
    %r{\Aoriginal/},
    ::Avm::Git::Organize::ReferenceUpdate::OPERATION_REMOVE
  )
end

#collect_subreposObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/avm/git/organize/repository.rb', line 16

def collect_subrepos
  collect_references_with_pattern(
    %r{\Asubrepo/},
    ::Avm::Git::Organize::ReferenceUpdate::OPERATION_REMOVE
  )
  collect_references_with_pattern(
    %r{\Aheads/subrepo/},
    ::Avm::Git::Organize::ReferenceUpdate::OPERATION_REMOVE
  )
end

#collected_referencesObject



12
13
14
# File 'lib/avm/git/organize/repository.rb', line 12

def collected_references
  @collected_references || []
end