Class: UndriveGoogle::Transformations::RenameHtml

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/undrive_google/transformations/rename_html.rb

Overview

Rename the unzipped HTML file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unzip) ⇒ RenameHtml

Returns a new instance of RenameHtml.



14
15
16
# File 'lib/undrive_google/transformations/rename_html.rb', line 14

def initialize(unzip)
  @unzip = unzip
end

Instance Attribute Details

#unzipObject

Returns the value of attribute unzip.



9
10
11
# File 'lib/undrive_google/transformations/rename_html.rb', line 9

def unzip
  @unzip
end

Instance Method Details

#processObject

Returns nil.

Returns:

  • nil



19
20
21
22
23
24
# File 'lib/undrive_google/transformations/rename_html.rb', line 19

def process
  puts "Renaming html file at #{html_path} to #{rename_path}" if Options.instance.verbose
  File.rename(html_path, rename_path)

  nil
end