Module: Extracter

Defined in:
lib/extracter/opn.rb,
lib/extracter/help.rb,
lib/extracter/misc.rb,
lib/extracter/reset.rb,
lib/extracter/colours.rb,
lib/extracter/extracter.rb,
lib/extracter/initialize.rb,
lib/extracter/class_methods.rb,
lib/extracter/version/version.rb,
lib/extracter/do_extract_what_to.rb,
lib/extracter/constants/constants.rb,
lib/extracter/extract_it/extract_it.rb

Overview

#

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'

#

Defined Under Namespace

Classes: ExtractIt, Extracter

Class Method Summary collapse

Class Method Details

.[](i, where_to = Dir.pwd) ⇒ Object

#

Extracter[]

#

139
140
141
# File 'lib/extracter/class_methods.rb', line 139

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) ⇒ Object

#

Extracter.extract_what_to

#

128
129
130
131
132
133
134
# File 'lib/extracter/class_methods.rb', line 128

def self.extract_what_to(
    what = 'foo-1.0.tar.xz',
    to   = '/tmp',
    optional_be_silent = false
  )
  ::Extracter::Extracter.extract_what_to(what, to, optional_be_silent)
end

.is_this_a_valid_archive?(i) ⇒ Boolean

#

Extracter.is_this_a_valid_archive?

#

Returns:

  • (Boolean)

121
122
123
# File 'lib/extracter/class_methods.rb', line 121

def self.is_this_a_valid_archive?(i)
  ::Extracter::Extracter.is_this_a_valid_archive?(i)
end