Class: Gonzui::Deindexer

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/gonzui/deindexer.rb

Instance Method Summary collapse

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

#initialize(config, dbm, normalized_path) ⇒ Deindexer

Returns a new instance of Deindexer.



19
20
21
22
23
24
25
26
# File 'lib/gonzui/deindexer.rb', line 19

def initialize(config, dbm, normalized_path)
  @config = config
  @dbm = dbm
  @normalized_path = normalized_path
  @path_id = @dbm.get_path_id(@normalized_path)
  @package_id = @dbm.get_package_id_from_path_id(@path_id)
  @package_name = @dbm.get_package_name(@package_id)
end

Instance Method Details

#deindexObject



156
157
158
159
160
# File 'lib/gonzui/deindexer.rb', line 156

def deindex
  remove_path
  remove_content
  remove_package_if_necessary
end