Class: BackupRepos::Shell

Inherits:
Object show all
Defined in:
lib/backup_repos/shell.rb

Instance Method Summary collapse

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