lib/pdk/cli/exec_group.rb in pdk-1.2.1 vs lib/pdk/cli/exec_group.rb in pdk-1.3.0

- old
+ new

@@ -9,11 +9,11 @@ attr_reader :commands def initialize(message, opts = {}) @options = opts.merge(PDK::CLI::Util.spinner_opts_for_platform) - unless PDK.logger.debug? + if PDK::CLI::Util.interactive? @multi_spinner = TTY::Spinner::Multi.new("[:spinner] #{message}", @options) @multi_spinner.auto_spin end @threads = [] @@ -29,10 +29,10 @@ @exit_codes << yield end end def add_spinner(message, opts = {}) - return if PDK.logger.debug? + return unless PDK::CLI::Util.interactive? @multi_spinner.register("[:spinner] #{message}", @options.merge(opts).merge(PDK::CLI::Util.spinner_opts_for_platform)) end def exit_code @threads.each(&:join)