Class: Percheron::Actions::Logs
- Inherits:
-
Object
- Object
- Percheron::Actions::Logs
- Includes:
- Base
- Defined in:
- lib/percheron/actions/logs.rb
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(unit, follow: false) ⇒ Logs
constructor
A new instance of Logs.
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 |