Class: RakeDependencies::Extractors::TarGzExtractor
- Inherits:
-
Object
- Object
- RakeDependencies::Extractors::TarGzExtractor
- Defined in:
- lib/rake_dependencies/extractors.rb
Instance Attribute Summary collapse
-
#extract_path ⇒ Object
readonly
Returns the value of attribute extract_path.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #extract ⇒ Object
-
#initialize(file_path, extract_path, options = {}) ⇒ TarGzExtractor
constructor
A new instance of TarGzExtractor.
Constructor Details
#initialize(file_path, extract_path, options = {}) ⇒ TarGzExtractor
108 109 110 111 112 |
# File 'lib/rake_dependencies/extractors.rb', line 108 def initialize(file_path, extract_path, = {}) @file_path = file_path @extract_path = extract_path = end |
Instance Attribute Details
#extract_path ⇒ Object (readonly)
Returns the value of attribute extract_path.
106 107 108 |
# File 'lib/rake_dependencies/extractors.rb', line 106 def extract_path @extract_path end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
106 107 108 |
# File 'lib/rake_dependencies/extractors.rb', line 106 def file_path @file_path end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
106 107 108 |
# File 'lib/rake_dependencies/extractors.rb', line 106 def end |
Instance Method Details
#extract ⇒ Object
114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/rake_dependencies/extractors.rb', line 114 def extract create_extract_directory extract_files return unless requires_rename? rename( relative_to_extract_directory(rename_from), relative_to_extract_directory(rename_to) ) end |