Class: UndriveGoogle::Transformations::RenameHtml
- Inherits:
-
Object
- Object
- UndriveGoogle::Transformations::RenameHtml
- Extended by:
- Forwardable
- Defined in:
- lib/undrive_google/transformations/rename_html.rb
Overview
Rename the unzipped HTML file.
Instance Attribute Summary collapse
-
#unzip ⇒ Object
Returns the value of attribute unzip.
Instance Method Summary collapse
-
#initialize(unzip) ⇒ RenameHtml
constructor
A new instance of RenameHtml.
-
#process ⇒ Object
Nil.
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
#unzip ⇒ Object
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
#process ⇒ Object
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 |