Module: PBSync
- Defined in:
- lib/pbsync.rb,
lib/pbsync/cli.rb,
lib/pbsync/client.rb,
lib/pbsync/server.rb,
lib/pbsync/version.rb,
lib/pbsync/clipboard_sync.rb
Defined Under Namespace
Classes: CLI, Client, ClipboardSync, Server
Constant Summary
collapse
- SOCKET_PATH =
'/tmp/pbsync.sock'
- MAX_SIZE =
1_000_000
- POLL_INTERVAL =
0.5
- VERSION =
'0.1.1'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.logger ⇒ Object
19
20
21
|
# File 'lib/pbsync.rb', line 19
def logger
@logger ||= create_logger
end
|
Class Method Details
.log(message) ⇒ Object
Compatibility method for existing code
34
35
36
|
# File 'lib/pbsync.rb', line 34
def log(message)
logger.debug(message)
end
|
.verbose ⇒ Object
29
30
31
|
# File 'lib/pbsync.rb', line 29
def verbose
logger.level == Logger::DEBUG
end
|
.verbose=(value) ⇒ Object
25
26
27
|
# File 'lib/pbsync.rb', line 25
def verbose=(value)
logger.level = value ? Logger::DEBUG : Logger::INFO
end
|