Sha256: bd505d2d42a639956b7dba1d8aaf2d4c35068fcdf77e4acf34a8d1e1e42d6dfb

Contents?: true

Size: 774 Bytes

Versions: 59

Compression:

Stored size: 774 Bytes

Contents

# frozen_string_literal: true

require 'avm/git/launcher/publish_base'

module Avm
  module Git
    module LauncherStereotypes
      class GitSubrepo
        class Publish < ::Avm::Git::Launcher::PublishBase
          # @return [Pathname]
          def config_path
            instance.parent.warped.to_pathname.join(
              "./#{instance.to_parent_path}",
              ::Avm::Git::LauncherStereotypes::GitSubrepo::CONFIG_SUBPATH
            )
          end

          # @return [EacGit::Local::Subrepo::Config]
          def config
            ::EacGit::Local::Subrepo::Config.from_file(config_path)
          end

          # @return [String]
          def remote_ref
            config.remote_branch || super
          end
        end
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
avm-git-0.18.0 lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.94.0 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
avm-git-0.17.0 lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.86.5 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
avm-git-0.16.0 lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.86.4 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.86.3 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
avm-git-0.15.0 lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.86.2 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.84.0 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.83.0 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.82.0 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
avm-git-0.14.0 lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.81.0 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.80.0 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.79.0 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.78.0 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.77.1 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.77.0 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
eac_tools-0.76.1 sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb