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



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

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

#import(tarball) ⇒ Object



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

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