Sha256: 7986aed23eb151624f5a7491a8cadf032edc7d299f665a8d21d27732040ce668
Contents?: true
Size: 893 Bytes
Versions: 2
Compression:
Stored size: 893 Bytes
Contents
# frozen_string_literal: true # tau hg pull module HgPull # Backend method for hg pull. # rubocop:disable Metrics/MethodLength def hg_pull log.debug 'Pull hg repos' return false unless configured? %w[project_root_dir] unless git_check_hg log.error 'Not on git hg branch' return false end unless git_check_clean log.error 'No clean git workspace' return false end unless git_lib_pull_workspace log.error 'Unable to pull git workspace' return false end _hg_pull_hg_pull_repos end # rubocop:enable Metrics/MethodLength private # Pull hg repos. def _hg_pull_hg_pull_repos cmd_hg_pull_repos = format( config.active['cmd_hg_pull_repos'], root: config.active['project_root_dir'] ) return true if try cmd_hg_pull_repos log.error 'Unable to pull hg repos' false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
takeltau-0.35.12 | lib/takeltau/hg/pull.rb |
takeltau-0.35.11 | lib/takeltau/hg/pull.rb |