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)


19
20
21
# File 'lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb', line 19

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

#config_pathPathname

Returns:

  • (Pathname)


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

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

#remote_refString

Returns:

  • (String)


24
25
26
# File 'lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb', line 24

def remote_ref
  config.remote_branch || super
end