Class: Bk::Commands::Base

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
Bk::Color, Format
Defined in:
lib/bk/commands.rb

Direct Known Subclasses

Annotations, Artifacts

Constant Summary

Constants included from Format

Format::HORIZONTAL_PIPE, Format::VERTICAL_PIPE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Format

#annotation_colors, #build_colors, #build_header, #is_tty?, #job_colors, #pastel, #vertical_pipe

Methods included from Bk::Color

#colorize, #create_color_hash, #default_color, #error_color, #info_color, #success_color, #warning_color

Constructor Details

#initialize(buildkite_api_token: nil) ⇒ Base

Returns a new instance of Base.



11
12
13
# File 'lib/bk/commands.rb', line 11

def initialize(buildkite_api_token: nil)
  @spinner = TTY::Spinner.new("Talking to Buildkite API... :spinner", clear: true, format: :dots)
end

Instance Attribute Details

#spinnerObject (readonly)

Returns the value of attribute spinner.



9
10
11
# File 'lib/bk/commands.rb', line 9

def spinner
  @spinner
end