Class: SevenZip::Archive

Inherits:
Object
  • Object
show all
Includes:
BBLib::Effortless
Defined in:
lib/cli_chef/apps/sevenzip/dir.rb,
lib/cli_chef/apps/sevenzip/file.rb,
lib/cli_chef/apps/sevenzip/item.rb,
lib/cli_chef/apps/sevenzip/archive.rb

Defined Under Namespace

Classes: Dir, File, Item

Instance Method Summary collapse

Instance Method Details

#add(file, **opts) ⇒ Object



23
24
25
# File 'lib/cli_chef/apps/sevenzip/archive.rb', line 23

def add(file, **opts)
  SevenZip.add(path, file, **opts)
end

#delete(file, **opts) ⇒ Object



27
28
29
# File 'lib/cli_chef/apps/sevenzip/archive.rb', line 27

def delete(file, **opts)
  SevenZip.delete(path, file, **opts)
end

#extract(**opts) ⇒ Object



19
20
21
# File 'lib/cli_chef/apps/sevenzip/archive.rb', line 19

def extract(**opts)
  SevenZip.extract(path, **opts)
end

#sizeObject



15
16
17
# File 'lib/cli_chef/apps/sevenzip/archive.rb', line 15

def size
  ::File.size(path)
end