Module: Headsail

Defined in:
lib/headsail/api.rb,
lib/headsail/cli.rb,
lib/headsail/log.rb,
lib/headsail/http.rb,
lib/headsail/task.rb,
lib/headsail/oauth.rb,
lib/headsail/redis.rb,
lib/headsail/client.rb,
lib/headsail/version.rb,
lib/headsail/launcher.rb,
lib/headsail/configure.rb

Defined Under Namespace

Classes: API, CLI, Client, Configure, HTTP, Launcher, OAuth, Redis, Task

Constant Summary collapse

VERSION =
"0.1.16"

Class Method Summary collapse

Class Method Details

.err(msg, action) ⇒ Object



12
13
14
15
# File 'lib/headsail/log.rb', line 12

def self.err(msg, action)
  log.info("[ \e[31m#{'ERROR'}\e[0m ] #{msg}")
  exit 1 if action == :exit
end

.info(msg) ⇒ Object



8
9
10
# File 'lib/headsail/log.rb', line 8

def self.info(msg)
  log.info("[ \e[32m#{'INFO'}\e[0m ] #{msg}")
end

.logObject



4
5
6
# File 'lib/headsail/log.rb', line 4

def self.log
  @logger ||= build_logger
end