Class: Avm::Projects::Stereotypes::Git::Update
- Defined in:
- lib/avm/projects/stereotypes/git/update.rb,
lib/avm/projects/stereotypes/git/update/subrepo.rb
Defined Under Namespace
Classes: Subrepo
Instance Method Summary collapse
Instance Method Details
#clean_all ⇒ Object
34 35 36 37 |
# File 'lib/avm/projects/stereotypes/git/update.rb', line 34 def clean_all infom 'Cleaning' git_repo.command('subrepo', 'clean', '--all').execute! end |
#run ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/avm/projects/stereotypes/git/update.rb', line 18 def run clean_all selected_subrepos.map do |f| infov 'Subrepo', f on_speaker_node do |node| node.stderr_line_prefix = ' ' ::Avm::Projects::Stereotypes::Git::Update::Subrepo.new(self, f).run end end end |
#selected_subrepos_uncached ⇒ Object
29 30 31 32 |
# File 'lib/avm/projects/stereotypes/git/update.rb', line 29 def selected_subrepos_uncached git_repo.command('subrepo', '-q', 'status').execute!.split("\n").map(&:strip) .select(&:present?).map(&:to_pathname) end |