class Chelsea::Spinner

the spinner we use in Chelsea, needs work

Public Class Methods

new() click to toggle source
# File lib/chelsea/spinner.rb, line 25
def initialize
  @pastel = Pastel.new
end

Public Instance Methods

spin_msg(msg) click to toggle source
# File lib/chelsea/spinner.rb, line 29
def spin_msg(msg)
  format = "[#{@pastel.green(':spinner')}] " + @pastel.white(msg)
  spinner = TTY::Spinner.new(
    format,
    success_mark: @pastel.green('+'),
    hide_cursor: true
  )
  spinner.auto_spin
  spinner
end