Sha256: a574e6a1b17ca54e0fccb9c37c1301328e6252f8e951b7b034f03290912b0549

Contents?: true

Size: 1022 Bytes

Versions: 6

Compression:

Stored size: 1022 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'
      method_option :feature_flags, type: :boolean,
                                    desc: 'Adds summary of feature flag changes'
      method_option :update, aliases: '-u', type: :boolean,
                             desc: 'Updates an existing report'

      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

6 entries across 6 versions & 1 rubygems

Version Path
dri-0.11.0 lib/dri/commands/publish.rb
dri-0.10.2 lib/dri/commands/publish.rb
dri-0.10.1 lib/dri/commands/publish.rb
dri-0.10.0 lib/dri/commands/publish.rb
dri-0.9.0 lib/dri/commands/publish.rb
dri-0.8.0 lib/dri/commands/publish.rb