Sha256: fcc864bc306280ab4ad2720d641c028eabd700719c713aa42d4725e1a993c9e3

Contents?: true

Size: 911 Bytes

Versions: 1

Compression:

Stored size: 911 Bytes

Contents

# frozen_string_literal: true

# takeltau bit clipboard pull
module BitClipboardPull
  # Backend method for bit pull.
  def bit_clipboard_pull
    log.info 'Running bit pull'

    return false unless configured? %w[project_root_dir]

    return false unless _bit_clipboard_lib_prepare_workspace

    _bit_clipboard_pull_import_all
    _bit_clipboard_pull_checkout_all
    _bit_clipbpard_lib_remove_bit_artifacts
    _bit_clipboard_lib_sync_workspace
    _bit_clipboard_lib_bit_status
  end

  private

  # bit import components into workspace.
  def _bit_clipboard_pull_import_all
    cmd_bit_import_all =
      config.active['cmd_bit_clipboard_pull_bit_import_all']

    run cmd_bit_import_all
  end

  # Checkout components and merge them.
  def _bit_clipboard_pull_checkout_all
    cmd_bit_checkout_all =
      config.active['cmd_bit_clipboard_pull_bit_checkout_all']

    run cmd_bit_checkout_all
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
takeltau-0.34.15 lib/takeltau/bit/clipboard/pull.rb