Class: BackupRepos::Shell
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Shell
constructor
A new instance of Shell.
- #run(command) ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Shell
Returns a new instance of Shell.
5 6 7 |
# File 'lib/backup_repos/shell.rb', line 5 def initialize(opts = {}) @debug = opts[:debug] || false end |
Instance Method Details
#run(command) ⇒ Object
9 10 11 12 |
# File 'lib/backup_repos/shell.rb', line 9 def run(command) log_command(command) execute_command(command) end |