Class: Gitrob::CLI::Commands::Banner

Inherits:
Gitrob::CLI::Command show all
Defined in:
lib/gitrob/cli/commands/banner.rb

Instance Attribute Summary

Attributes inherited from Gitrob::CLI::Command

#options

Instance Method Summary collapse

Methods inherited from Gitrob::CLI::Command

#debug, #debugging_enabled?, #error, #fatal, #info, #output, #progress_bar, start, #task, #thread_pool, #warn

Constructor Details

#initialize(options) ⇒ Banner

Returns a new instance of Banner.



5
6
7
8
9
10
11
# File 'lib/gitrob/cli/commands/banner.rb', line 5

def initialize(options)
  @options = options
  output banner if options[:banner]
  info "Starting Gitrob version #{Gitrob::VERSION} " \
  "at #{Time.now.strftime('%Y-%m-%d %H:%M %Z')}"
  debug "Debugging mode enabled"
end