Sha256: e7eb2219a4258347831e0764e6e10860d1126c671a92d1b0f5fb62e88ffd24e3

Contents?: true

Size: 616 Bytes

Versions: 23

Compression:

Stored size: 616 Bytes

Contents

# frozen_string_literal: true

require 'clipboard'

module Avm
  module Git
    module Issue
      class Complete
        module Tracker
          def clipboard_copy_tracker_message
            ::Clipboard.copy(textile_tracker_message)
            infov 'Copied to clipboard', textile_tracker_message
          end

          private

          def textile_tracker_message_uncached
            "Revisado para commit:#{branch_short_hash}, ok."
          end

          def branch_short_hash
            git(['log', '--pretty=format:%h', '-1', '-q', branch_hash])
          end
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
avm-tools-0.113.5 sub/avm-git/lib/avm/git/issue/complete/tracker.rb
avm-tools-0.113.4 sub/avm-git/lib/avm/git/issue/complete/tracker.rb
avm-tools-0.113.3 sub/avm-git/lib/avm/git/issue/complete/tracker.rb
avm-tools-0.113.2 sub/avm-git/lib/avm/git/issue/complete/tracker.rb
avm-git-0.3.0 lib/avm/git/issue/complete/tracker.rb
avm-git-0.2.0 lib/avm/git/issue/complete/tracker.rb
avm-tools-0.110.0 vendor/avm-git/lib/avm/git/issue/complete/tracker.rb
avm-tools-0.109.1 vendor/avm-git/lib/avm/git/issue/complete/tracker.rb
avm-git-0.1.0 lib/avm/git/issue/complete/tracker.rb
avm-tools-0.109.0 vendor/avm-git/lib/avm/git/issue/complete/tracker.rb
avm-0.5.0 lib/avm/git/issue/complete/tracker.rb
avm-tools-0.108.0 vendor/avm/lib/avm/git/issue/complete/tracker.rb
avm-0.4.0 lib/avm/git/issue/complete/tracker.rb
avm-tools-0.107.0 vendor/avm/lib/avm/git/issue/complete/tracker.rb
avm-tools-0.106.0 vendor/avm/lib/avm/git/issue/complete/tracker.rb
avm-0.3.2 lib/avm/git/issue/complete/tracker.rb
avm-0.3.1 lib/avm/git/issue/complete/tracker.rb
avm-tools-0.105.0 vendor/avm/lib/avm/git/issue/complete/tracker.rb
avm-0.3.0 lib/avm/git/issue/complete/tracker.rb
avm-tools-0.104.0 vendor/avm/lib/avm/git/issue/complete/tracker.rb