Class: PushmiPullyu::AIP::Creator

Inherits:
Object
  • Object
show all
Defined in:
lib/pushmi_pullyu/aip/creator.rb

Defined Under Namespace

Classes: BagInvalid

Instance Method Summary collapse

Constructor Details

#initialize(noid, aip_directory, aip_filename) ⇒ Creator

Assumption: the AIP has already been downloaded


11
12
13
14
15
# File 'lib/pushmi_pullyu/aip/creator.rb', line 11

def initialize(noid, aip_directory, aip_filename)
  @noid = noid
  @aip_directory = aip_directory
  @aip_filename = aip_filename
end

Instance Method Details

#runObject


17
18
19
20
# File 'lib/pushmi_pullyu/aip/creator.rb', line 17

def run
  bag_aip
  tar_bag
end