Class: Percheron::Actions::Logs

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/percheron/actions/logs.rb

Instance Method Summary collapse

Methods included from Base

#base_dir, #in_working_directory

Constructor Details

#initialize(unit, follow: false) ⇒ Logs

Returns a new instance of Logs.



6
7
8
9
# File 'lib/percheron/actions/logs.rb', line 6

def initialize(unit, follow: false)
  @unit = unit
  @follow = follow
end

Instance Method Details

#execute!Object



11
12
13
14
# File 'lib/percheron/actions/logs.rb', line 11

def execute!
  $logger.debug "Showing logs on '#{unit.display_name}' unit"
  display_logs!
end