Class: Gonzui::AptFetcher

Inherits:
AbstractFetcher show all
Defined in:
lib/gonzui/fetcher.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractFetcher

#add_finishing_proc, #collect, #exclude?, #fetch, #finish, #initialize, #package_name

Methods included from Util

assert, assert_equal, assert_equal_all, assert_non_nil, assert_not_reached, benchmark, command_exist?, commify, eprintf, format_bytes, program_name, protect_from_signals, require_command, set_verbosity, shell_escape, unix?, vprintf, windows?, wprintf

Constructor Details

This class inherits a constructor from Gonzui::AbstractFetcher

Class Method Details

.schemeObject



218
219
220
# File 'lib/gonzui/fetcher.rb', line 218

def self.scheme
  "apt-get"
end

Instance Method Details

#get_extractorObject



226
227
228
229
# File 'lib/gonzui/fetcher.rb', line 226

def get_extractor
  package_name = @source_uri.path.prechop
  return AptGet.new(@config, package_name)
end

#need_extraction?Boolean

Returns:

  • (Boolean)


222
223
224
# File 'lib/gonzui/fetcher.rb', line 222

def need_extraction?
  true
end