Sha256: 3d99cefce736c52bf573fc5b3afc19610b2ca160bcbe00630b87a0c84a5494a2

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

require 'tty-spinner'

require 'pdk/cli/util'

# 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?
      PDK::CLI::Util.interactive?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pdk-1.13.0 lib/pdk/cli/util/spinner.rb