Class: Perhoa
- Inherits:
-
Object
- Object
- Perhoa
- Defined in:
- lib/perhoa.rb
Constant Summary collapse
- CONFIG_FILE =
ENV['HOME'] + '/.config/perhoa/config.yaml'
Class Method Summary collapse
Class Method Details
.run ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/perhoa.rb', line 13 def self.run $config = File.size?(CONFIG_FILE) ? symbolise(YAML.load_file(CONFIG_FILE)) : Hash.new if already_running? puts 'Sending messages to running Perhoa process...' exit end read_config listener = SocketListener.new(ARGV) listener.listen end |