Module: CapistranoSentinel

Defined in:
lib/capistrano_sentinel/version.rb,
lib/capistrano_sentinel.rb,
lib/capistrano_sentinel/helpers/logging.rb,
lib/capistrano_sentinel/classes/gem_finder.rb,
lib/capistrano_sentinel/classes/input_stream.rb,
lib/capistrano_sentinel/classes/configuration.rb,
lib/capistrano_sentinel/classes/output_stream.rb,
lib/capistrano_sentinel/classes/request_hooks.rb,
lib/capistrano_sentinel/classes/request_worker.rb,
lib/capistrano_sentinel/classes/websocket/errors.rb,
lib/capistrano_sentinel/classes/websocket_client.rb,
lib/capistrano_sentinel/helpers/application_helper.rb

Overview

Returns the version of the gem as a Gem::Version

Defined Under Namespace

Modules: ApplicationHelper, Logging, VERSION Classes: BadMessageTypeError, Configuration, ConnectError, GemFinder, InputStream, OutputStream, RequestHooks, RequestWorker, WebsocketClient, WsError, WsProtocolError

Class Method Summary collapse

Class Method Details

.configObject


9
10
11
# File 'lib/capistrano_sentinel.rb', line 9

def self.config
  @config ||= CapistranoSentinel::Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:


5
6
7
# File 'lib/capistrano_sentinel.rb', line 5

def self.configure
  yield config
end

.gem_versionString

it prints the gem version as a string

Returns:


8
9
10
# File 'lib/capistrano_sentinel/version.rb', line 8

def self.gem_version
  Gem::Version.new VERSION::STRING
end