Sha256: 8a9b4067909b52828b8f09fb18d769b65dad1b09ac9c22caae7dfbdf3332c97b

Contents?: true

Size: 752 Bytes

Versions: 2

Compression:

Stored size: 752 Bytes

Contents

# frozen_string_literal: true

require 'avm/core_ext'
require 'avm/git/issue/deliver'

module Avm
  module Tools
    class Runner
      class Git
        class Issue
          class Deliver
            runner_with :confirmation, :help do
              desc 'Deliver a issue in a Git repository.'
            end

            def run
              deliver.start_banner
              if confirm?('Confirm issue delivery?')
                deliver.run
              else
                fatal_error 'Issue undelivered'
              end
            end

            private

            def deliver_uncached
              ::Avm::Git::Issue::Deliver.new(runner_context.call(:git_repo))
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
avm-tools-0.103.0 lib/avm/tools/runner/git/issue/deliver.rb
avm-tools-0.102.2 lib/avm/tools/runner/git/issue/deliver.rb