Sha256: 31fcebc8758bb49f5cfc7d3972cb720d69339448ff6f82cd2f9287a3f83da42f

Contents?: true

Size: 912 Bytes

Versions: 40

Compression:

Stored size: 912 Bytes

Contents

# frozen_string_literal: true

# takelage bit clipboard pull
module BitClipboardPull
  # Backend method for bit pull.
  def bit_clipboard_pull
    log.debug '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

40 entries across 40 versions & 1 rubygems

Version Path
takelage-0.33.1 lib/takelage/bit/clipboard/pull.rb
takelage-0.32.4 lib/takelage/bit/clipboard/pull.rb
takelage-0.32.3 lib/takelage/bit/clipboard/pull.rb
takelage-0.32.1 lib/takelage/bit/clipboard/pull.rb
takelage-0.32.0 lib/takelage/bit/clipboard/pull.rb
takelage-0.31.0 lib/takelage/bit/clipboard/pull.rb
takelage-0.30.6 lib/takelage/bit/clipboard/pull.rb
takelage-0.30.5 lib/takelage/bit/clipboard/pull.rb
takelage-0.30.1 lib/takelage/bit/clipboard/pull.rb
takelage-0.30.0 lib/takelage/bit/clipboard/pull.rb
takelage-0.29.14 lib/takelage/bit/clipboard/pull.rb
takelage-0.29.13 lib/takelage/bit/clipboard/pull.rb
takelage-0.29.11 lib/takelage/bit/clipboard/pull.rb
takelage-0.29.10 lib/takelage/bit/clipboard/pull.rb
takelage-0.29.8 lib/takelage/bit/clipboard/pull.rb
takelage-0.29.6 lib/takelage/bit/clipboard/pull.rb
takelage-0.29.0 lib/takelage/bit/clipboard/pull.rb
takelage-0.28.26 lib/takelage/bit/clipboard/pull.rb
takelage-0.28.24 lib/takelage/bit/clipboard/pull.rb
takelage-0.28.14 lib/takelage/bit/clipboard/pull.rb