Module: Tailer
- Defined in:
- lib/deployinator/stack-tail.rb
Defined Under Namespace
Classes: StackTail
Class Method Summary collapse
-
.stack_tail(stack, channel, channel_count) ⇒ Object
Checks if stack log symlink exists and creates Tailer for it.
Class Method Details
.stack_tail(stack, channel, channel_count) ⇒ Object
Checks if stack log symlink exists and creates Tailer for it
27 28 29 30 31 32 33 |
# File 'lib/deployinator/stack-tail.rb', line 27 def self.stack_tail(stack, channel, channel_count) if .get_stacks.include?(stack) filename = "#{Deployinator::Helpers::RUN_LOG_PATH}current-#{stack}" start_pos = (channel_count == 0) ? 0 : -1 File.exists?(filename) ? StackTail.new(filename, channel, start_pos) : false end end |