Module: Masquito

Defined in:
lib/masquito.rb,
lib/masquito/daemon.rb,
lib/masquito/version.rb,
lib/masquito/resolver.rb,
lib/masquito/settings.rb,
lib/masquito/installer.rb

Defined Under Namespace

Classes: Daemon, Installer, Resolver, Settings

Constant Summary collapse

CONFIG_PATH =

When user installs Masquito we use his home path, but when it’s launched as daemon with superuser rights there’s no home directory at all. That’s why we set environment variable and rely on it.

ENV['CONFIG_PATH'] || File.join(ENV['HOME'], '.masquito')
GEM_PATH =
File.expand_path('../../', __FILE__)
BIN =
File.join(GEM_PATH, 'bin', 'masquito')
VERSION =
'2.0.0'