Module: Deployinator::Helpers::StackTailHelpers

Included in:
Views::Layout
Defined in:
lib/deployinator/helpers/stack-tail.rb

Overview

Public: helper methods to stack tailer

Constant Summary collapse

STACK_TAIL_VERSION =

This is used to make sure the front end javascript loaded matches the same backend code for the deployinator tailer. Increment this only if you make protocol changes for the tailer

Version format: Stack Tailer 1.X - meme name History: 1.0 - All Your Base

Introduced versions
"Stack Tailer 1.0 - All Your Base"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.get_stack_tail_versionObject

This is so the tailer can access this method without having to send() the method into scope. If there is a better way to do this please let me know



22
23
24
# File 'lib/deployinator/helpers/stack-tail.rb', line 22

def self.get_stack_tail_version
  STACK_TAIL_VERSION
end

Instance Method Details

#stack_tail_versionObject

So deployinator can get at this



15
16
17
# File 'lib/deployinator/helpers/stack-tail.rb', line 15

def stack_tail_version
  STACK_TAIL_VERSION
end

#stack_tail_websocket_portObject

Returns the websocket port for the stack tailer



27
28
29
# File 'lib/deployinator/helpers/stack-tail.rb', line 27

def stack_tail_websocket_port
  Deployinator.stack_tailer_port
end