Module: RunitHelper
- Defined in:
- lib/runit_helper.rb
Overview
This module provides a run_or_sudo helper method that checks what is should use before running a command
Instance Method Summary collapse
Instance Method Details
#run_or_sudo(command) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/runit_helper.rb', line 11 def run_or_sudo(command) if configuration.runit_sudo_tasks.include? configuration.actor.current_task.name sudo command else run command end end |