Sha256: 3210e730b237bc60b0b95a59b3c47cdfa3a38ce5e4e038b59e6071c9ba64a3ca

Contents?: true

Size: 760 Bytes

Versions: 3

Compression:

Stored size: 760 Bytes

Contents

# frozen_string_literal: true

require 'thor'

module Dri
  module Commands
    class Publish < Thor

      namespace :publish

      desc 'report', 'Generate a report'
      method_option :dry_run, type: :boolean,
                           desc: 'Generates a report locally'
      method_option :format, aliases: '-f', type: :string, :default => "table",
                           desc: 'Formats the report'
      method_option :actions, type: :boolean,
                           desc: 'Updates actions on failures'
      def report(*)
        if options[:help]
          invoke :help, ['report']
        else
          require_relative 'publish/report'
          Dri::Commands::Publish::Report.new(options).execute
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dri-0.1.3 lib/dri/commands/publish.rb
dri-0.1.2 lib/dri/commands/publish.rb
dri-0.1.1 lib/dri/commands/publish.rb