Class: Bk::Commands::Base
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Bk::Commands::Base
- Defined in:
- lib/bk/commands.rb
Direct Known Subclasses
Constant Summary
Constants included from Format
Format::HORIZONTAL_PIPE, Format::VERTICAL_PIPE
Instance Attribute Summary collapse
-
#spinner ⇒ Object
readonly
Returns the value of attribute spinner.
Instance Method Summary collapse
-
#initialize(buildkite_api_token: nil) ⇒ Base
constructor
A new instance of Base.
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
#spinner ⇒ Object (readonly)
Returns the value of attribute spinner.
9 10 11 |
# File 'lib/bk/commands.rb', line 9 def spinner @spinner end |