Sha256: d7e65404ffdedf9c45b695dfc8804dcfd77e6a6b9e57531906edf91c2c5d77b6

Contents?: true

Size: 285 Bytes

Versions: 22

Compression:

Stored size: 285 Bytes

Contents

require 'tty-spinner'

# Replace the built-in tty check in tty-spinner with our own implementation
# that allows us to mock the behaviour during acceptance tests.
module TTY
  class Spinner
    def tty?
      require 'pdk/cli/util'

      PDK::CLI::Util.interactive?
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
pdk-akerl-1.14.0.1 lib/pdk/cli/util/spinner.rb
pdk-1.14.0 lib/pdk/cli/util/spinner.rb