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



163
164
165
166
167
168
169
# File 'lib/debci/data.rb', line 163

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

#import(tarball) ⇒ Object



172
173
174
175
# File 'lib/debci/data.rb', line 172

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