Module: Sonia

Defined in:
lib/sonia.rb,
lib/sonia/cli.rb,
lib/sonia/server.rb,
lib/sonia/config.rb,
lib/sonia/widget.rb,
lib/sonia/helpers.rb,
lib/sonia/widgets.rb,
lib/sonia/version.rb,
lib/sonia/web_server.rb

Overview

Author:

  • Piotr Usewicz

Defined Under Namespace

Modules: Helpers, Server, Widgets Classes: CLI, Config, WebServer, Widget

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.logLogger

Returns application logger

Returns:

  • (Logger)

19
20
21
# File 'lib/sonia.rb', line 19

def self.log
  @logger ||= Logger.new(STDOUT)
end

.rootString

Returns expanded path to the root directory

Returns:

  • (String)

    expanded path to the root directory


26
27
28
# File 'lib/sonia.rb', line 26

def self.root
  @@root ||= File.expand_path(File.join(File.dirname(__FILE__), '..'))
end