Module: Bixby

Defined in:
lib/bixby-common.rb,
lib/bixby-common/bixby.rb,
lib/bixby-common/util/log.rb,
lib/bixby-common/util/debug.rb,
lib/bixby-common/util/signal.rb,
lib/bixby-common/command_spec.rb,
lib/bixby-common/util/hashify.rb,
lib/bixby-common/util/jsonify.rb,
lib/bixby-common/api/api_channel.rb,
lib/bixby-common/api/rpc_handler.rb,
lib/bixby-common/api/http_channel.rb,
lib/bixby-common/api/json_request.rb,
lib/bixby-common/command_response.rb,
lib/bixby-common/util/crypto_util.rb,
lib/bixby-common/util/http_client.rb,
lib/bixby-common/util/thread_dump.rb,
lib/bixby-common/util/thread_pool.rb,
lib/bixby-common/api/json_response.rb,
lib/bixby-common/websocket/message.rb,
lib/bixby-common/websocket/request.rb,
lib/bixby-common/websocket/response.rb,
lib/bixby-common/util/thread_pool/task.rb,
lib/bixby-common/websocket/api_channel.rb,
lib/bixby-common/api/signed_json_request.rb,
lib/bixby-common/util/thread_pool/worker.rb,
lib/bixby-common/websocket/async_response.rb,
lib/bixby-common/util/log/filtering_layout.rb,
lib/bixby-common/api/encrypted_json_request.rb,
lib/bixby-common/exception/bundle_not_found.rb,
lib/bixby-common/exception/encryption_error.rb,
lib/bixby-common/exception/command_exception.rb,
lib/bixby-common/exception/command_not_found.rb

Defined Under Namespace

Modules: CryptoUtil, Debug, Hashify, HttpClient, Jsonify, Log, Signal, ThreadDump, WebSocket Classes: APIChannel, BundleNotFound, CommandException, CommandNotFound, CommandResponse, CommandSpec, EncryptedJsonRequest, EncryptionError, HttpChannel, JsonRequest, JsonResponse, RpcHandler, SignedJsonRequest, ThreadPool

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.manager_uriObject

Returns the value of attribute manager_uri.



4
5
6
# File 'lib/bixby-common/bixby.rb', line 4

def manager_uri
  @manager_uri
end

Class Method Details

.path(*args) ⇒ Object

Helper for creating absolute paths inside BIXBY_HOME



18
19
20
# File 'lib/bixby-common/bixby.rb', line 18

def path(*args)
  File.expand_path(File.join(root, *args))
end

.repo(*args) ⇒ Object Also known as: repo_path



6
7
8
# File 'lib/bixby-common/bixby.rb', line 6

def repo(*args)
  path("repo", *args)
end

.rootObject Also known as: home

Path to BIXBY_HOME



12
13
14
# File 'lib/bixby-common/bixby.rb', line 12

def root
  ENV["BIXBY_HOME"]
end