Sha256: d7e65404ffdedf9c45b695dfc8804dcfd77e6a6b9e57531906edf91c2c5d77b6

Contents?: true

Size: 285 Bytes

Versions: 21

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

21 entries across 21 versions & 2 rubygems

Version Path
pdk-3.3.0 lib/pdk/cli/util/spinner.rb
pdk-3.0.1 lib/pdk/cli/util/spinner.rb
pdk-3.0.0 lib/pdk/cli/util/spinner.rb
pdk-2.7.1 lib/pdk/cli/util/spinner.rb
pdk-2.7.0 lib/pdk/cli/util/spinner.rb
pdk-2.6.1 lib/pdk/cli/util/spinner.rb
pdk-2.6.0 lib/pdk/cli/util/spinner.rb
pdk-2.5.0 lib/pdk/cli/util/spinner.rb
pdk-2.3.0 lib/pdk/cli/util/spinner.rb
pdk-2.2.0 lib/pdk/cli/util/spinner.rb
pdk-2.1.1 lib/pdk/cli/util/spinner.rb
pdk-2.1.0 lib/pdk/cli/util/spinner.rb
pdk-2.0.0 lib/pdk/cli/util/spinner.rb
pdk-1.18.1 lib/pdk/cli/util/spinner.rb
pdk-1.18.0 lib/pdk/cli/util/spinner.rb
pdk-1.17.0 lib/pdk/cli/util/spinner.rb
pdk-1.16.0 lib/pdk/cli/util/spinner.rb
pdk-1.15.0 lib/pdk/cli/util/spinner.rb
pdk-1.14.1 lib/pdk/cli/util/spinner.rb
pdk-akerl-1.14.0.1 lib/pdk/cli/util/spinner.rb