Class: Staticz::BuildListener
- Inherits:
-
Object
- Object
- Staticz::BuildListener
- Defined in:
- lib/commands/build_command.rb
Instance Method Summary collapse
- #error ⇒ Object
- #finish ⇒ Object
-
#initialize(compilable) ⇒ BuildListener
constructor
A new instance of BuildListener.
Constructor Details
#initialize(compilable) ⇒ BuildListener
Returns a new instance of BuildListener.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/commands/build_command.rb', line 65 def initialize(compilable) @compilable = compilable if Staticz::Settings.verbose? puts "Compiling #{generate_text}" else @spinner = TTY::Spinner.new( "[:spinner] #{generate_text}", format: :classic, success_mark: Colors.in_green("✔"), error_mark: Colors.in_red("✖") ) @spinner.auto_spin end end |