Sha256: 69c617160b3c435c735f1bdbf95376f7d93e699027fb48b2a06adb1787d58747

Contents?: true

Size: 897 Bytes

Versions: 5

Compression:

Stored size: 897 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'
      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

5 entries across 5 versions & 1 rubygems

Version Path
dri-0.7.0 lib/dri/commands/publish.rb
dri-0.6.1 lib/dri/commands/publish.rb
dri-0.6.0 lib/dri/commands/publish.rb
dri-0.5.1 lib/dri/commands/publish.rb
dri-0.5.0 lib/dri/commands/publish.rb