Class: Jekyll::Spaceship::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-spaceship/cores/logger.rb

Class Method Summary collapse

Class Method Details

.display_infoObject



7
8
9
10
11
# File 'lib/jekyll-spaceship/cores/logger.rb', line 7

def self.display_info
  self.log "Jekyll-Spaceship #{Jekyll::Spaceship::VERSION}"
  self.log "A Jekyll plugin to provide powerful supports."
  self.log "https://github.com/jeffreytse/jekyll-spaceship"
end

.log(content) ⇒ Object



13
14
15
# File 'lib/jekyll-spaceship/cores/logger.rb', line 13

def self.log(content)
  self.output "Jekyll Spaceship", content
end

.output(title, content) ⇒ Object



17
18
19
# File 'lib/jekyll-spaceship/cores/logger.rb', line 17

def self.output(title, content)
  puts "#{title.rjust(18)}: #{content}"
end