class Rbk::Cli::Archiver
Public Class Methods
new(shell=Shell.new)
click to toggle source
# File lib/rbk/cli.rb, line 50 def initialize(shell=Shell.new) @shell = shell end
Public Instance Methods
create(path)
click to toggle source
# File lib/rbk/cli.rb, line 54 def create(path) archive = %(#{path}.tar.gz) @shell.exec(%(tar czf #{archive} #{path})) archive end