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



154
155
156
157
158
159
160
# File 'lib/debci/data.rb', line 154

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

#import(tarball) ⇒ Object



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

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