Class: CapistranoSentinel::Configuration
- Defined in:
- lib/capistrano_sentinel/classes/configuration.rb
Constant Summary collapse
- SETTINGS =
[ :secure, :host, :port, :path, :auto_pong, :read_buffer_size, :reconnect, :retry_time, :wait_execution, :hook_stdin_and_stdout, :max_frame_size, :should_raise ]
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #max_frame_size=(val) ⇒ Object
- #should_raise=(val) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/capistrano_sentinel/classes/configuration.rb', line 24 def initialize @secure = false @host = '0.0.0.0' @port = 1234 @path = '/ws' @auto_pong = true @read_buffer_size = 2048 @reconnect = false @retry_time = 0 @wait_execution = true @hook_stdin_and_stdout = true @max_frame_size = ::WebSocket.max_frame_size @should_raise = ::WebSocket.should_raise end |
Instance Method Details
#max_frame_size=(val) ⇒ Object
40 41 42 |
# File 'lib/capistrano_sentinel/classes/configuration.rb', line 40 def max_frame_size=(val) ::WebSocket.max_frame_size = @max_frame_size = val end |
#should_raise=(val) ⇒ Object
44 45 46 |
# File 'lib/capistrano_sentinel/classes/configuration.rb', line 44 def should_raise=(val) ::WebSocket.should_raise = @should_raise = val end |