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



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

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

#import(tarball) ⇒ Object



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

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