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.



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