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.
3 4 5 |
# File 'lib/backup_repos/shell.rb', line 3 def initialize(opts = {}) @debug = opts[:debug] || false end |
Instance Method Details
#run(command) ⇒ Object
7 8 9 10 |
# File 'lib/backup_repos/shell.rb', line 7 def run(command) log_command(command) execute_command(command) end |