Class: Avm::Git::LauncherStereotypes::GitSubrepo::Publish

Inherits:
Avm::Git::Launcher::PublishBase show all
Defined in:
lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb

Constant Summary

Constants inherited from Avm::Git::Launcher::PublishBase

Avm::Git::Launcher::PublishBase::CHECKERS, Avm::Git::Launcher::PublishBase::DEFAULT_REMOTE_REF, Avm::Git::Launcher::PublishBase::REMOTE_UNAVAILABLE_MESSAGES

Instance Method Summary collapse

Instance Method Details

#configEacGit::Local::Subrepo::Config

Returns:

  • (EacGit::Local::Subrepo::Config)


17
18
19
# File 'lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb', line 17

def config
  ::EacGit::Local::Subrepo::Config.from_file(config_path)
end

#config_pathPathname

Returns:

  • (Pathname)


9
10
11
12
13
14
# File 'lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb', line 9

def config_path
  instance.parent.warped.to_pathname.join(
    "./#{instance.to_parent_path}",
    ::Avm::Git::LauncherStereotypes::GitSubrepo::CONFIG_SUBPATH
  )
end

#remote_refString

Returns:

  • (String)


22
23
24
# File 'lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb', line 22

def remote_ref
  config.remote_branch || super
end