Class: ChipmunkBag

Inherits:
BagIt::Bag
  • Object
show all
Defined in:
lib/chipmunk_bag.rb

Instance Method Summary collapse

Instance Method Details

#chipmunk_infoObject


10
11
12
13
# File 'lib/chipmunk_bag.rb', line 10

def chipmunk_info
  return {} unless File.exist?(chipmunk_info_txt_file)
  read_info_file chipmunk_info_txt_file
end

#chipmunk_info_txt_fileObject


6
7
8
# File 'lib/chipmunk_bag.rb', line 6

def chipmunk_info_txt_file
  File.join bag_dir, "chipmunk-info.txt"
end