Class: Debci::Data::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/debci/data.rb

Instance Method Summary collapse

Instance Method Details

#export(tarball, *packages) ⇒ Object



160
161
162
163
164
165
166
# File 'lib/debci/data.rb', line 160

def export(tarball, *packages)
  exporter = Debci::Data::Export.new(tarball)
  packages.each do |pkg|
    exporter.add(pkg)
  end
  exporter.save
end

#import(tarball) ⇒ Object



169
170
171
172
# File 'lib/debci/data.rb', line 169

def import(tarball)
  importer = Debci::Data::Import.new(tarball)
  importer.import!
end