Class: Tankobon::Archive

Inherits:
Stageable show all
Defined in:
lib/tankobon/archive.rb

Instance Method Summary collapse

Methods inherited from Stageable

#initialize, #stage, #stage_root, #stageable

Constructor Details

This class inherits a constructor from Tankobon::Stageable

Instance Method Details

#to_stageObject



3
4
5
6
7
8
# File 'lib/tankobon/archive.rb', line 3

def to_stage
  super do
    FileUtils.mkdir_p(stage) unless stage.exist?
    %x{cd "#{stage}" && 7za x -r "#{stageable}"}
  end
end