module Extracter

#
#
#
#

require 'extracter/do_extract_what_to.rb'

#
#

Extracter::ExtractIt

If no input was provided to this class, but a .zip file exists in the current working directory, then that .zip file will be used.

Usage example:

Extracter::ExtractIt.new(ARGV)
#

require 'extracter/extract_it/extract_it.rb'

#
#
#

require 'extracter/initialize.rb'

#
#

require 'extracter/misc.rb'

#
#
#
#

require 'extracter/version/version.rb'

#

Public Class Methods

[](i, where_to = Dir.pwd) click to toggle source
#

Extracter[]

#
# File lib/extracter/class_methods.rb, line 158
def self.[](i, where_to = Dir.pwd)
  ::Extracter::Extracter.new(i, where_to)
end
extract_what_to( what = 'foo-1.0.tar.xz', to = '/tmp/', optional_be_silent = false ) click to toggle source
#

Extracter.extract_what_to

#
# File lib/extracter/class_methods.rb, line 134
def self.extract_what_to(
    what = 'foo-1.0.tar.xz',
    to   = '/tmp/', # This target directory defaults to Linux/UNIX-like systems.
    optional_be_silent = false
  )
  ::Extracter::Extracter.extract_what_to(what, to, optional_be_silent)
end
is_this_a_valid_archive?(i) click to toggle source
#

Extracter.is_this_a_valid_archive?

Determine whether the Extracter project can deal with the given archive or whether it can not.

#
# File lib/extracter/class_methods.rb, line 127
def self.is_this_a_valid_archive?(i)
  ::Extracter::Extracter.is_this_a_valid_archive?(i)
end
new( what = nil, where_to = nil, run_already = true, &block ) click to toggle source
#

Extracter.new

#
# File lib/extracter/initialize.rb, line 105
def self.new(
      what        = nil,
      where_to    = nil, # Where to extract into.
      run_already = true,
      &block
    )
  ::Extracter::Extracter.new(what, where_to, run_already, &block)
end