Sha256: 977238de2d45a7dae1cb047be58678cff62bf4002342763fee0bd4ec65fbee47

Contents?: true

Size: 624 Bytes

Versions: 12

Compression:

Stored size: 624 Bytes

Contents

# frozen_string_literal: true

# tau hg push
module HgPush
  # Backend method for hg push.
  def hg_push
    log.debug 'Push hg repos'

    return false unless git_lib_prepare_git_workspace

    unless _hg_push_hg_push_repos
      log.error 'Unable to tau hg push'
      return false
    end

    git_lib_push_hg_dirs
  end

  private

  # Push hg repos.
  def _hg_push_hg_push_repos
    cmd_hg_push_repos = format(
      config.active['cmd_hg_push_repos'],
      root: config.active['project_root_dir']
    )

    stdout, _, exitstatus = run_and_capture cmd_hg_push_repos
    log.info stdout
    exitstatus.zero?
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
takeltau-0.40.0 lib/takeltau/hg/push.rb
takeltau-0.39.18 lib/takeltau/hg/push.rb
takeltau-0.39.16 lib/takeltau/hg/push.rb
takeltau-0.39.11 lib/takeltau/hg/push.rb
takeltau-0.39.7 lib/takeltau/hg/push.rb
takeltau-0.39.2 lib/takeltau/hg/push.rb
takeltau-0.39.0 lib/takeltau/hg/push.rb
takeltau-0.38.2 lib/takeltau/hg/push.rb
takeltau-0.38.1 lib/takeltau/hg/push.rb
takeltau-0.38.0 lib/takeltau/hg/push.rb
takeltau-0.37.3 lib/takeltau/hg/push.rb
takeltau-0.37.1 lib/takeltau/hg/push.rb