Sha256: 3b853c1ad7e3e9b88c173ad0edb0442d6b551632615d632b524fa4b75f9befd1
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
require 'socket' require 'osc-ruby' require 'qcmd/version' require 'qcmd/plaintext' require 'qcmd/commands' require 'qcmd/input_completer' require 'qcmd/core_ext/array' require 'qcmd/core_ext/osc/message' require 'qcmd/core_ext/osc/stopping_server' module Qcmd autoload :Handler, 'qcmd/handler' autoload :Server, 'qcmd/server' autoload :Context, 'qcmd/context' autoload :Parser, 'qcmd/parser' autoload :CLI, 'qcmd/cli' autoload :Machine, 'qcmd/machine' autoload :Network, 'qcmd/network' autoload :QLab, 'qcmd/qlab' autoload :VERSION, 'qcmd/version' class << self include Qcmd::Plaintext attr_accessor :log_level attr_accessor :debug_mode attr_accessor :context def verbose! self.log_level = :debug end def quiet! self.log_level = :warning end def silent! self.log_level = :none end def silent? self.log_level == :none end def quiet? self.log_level == :warning end def while_quiet previous_level = self.log_level self.log_level = :warning yield self.log_level = previous_level end def debug? !!debug_mode end def debug message log(message) if log_level == :debug end def connected? !!context && !!context.machine && !context.machine.nil? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qcmd-0.1.7 | lib/qcmd.rb |