Class: Packages::Helm::ExtractFileMetadataService

Inherits:
Object
  • Object
show all
Defined in:
app/services/packages/helm/extract_file_metadata_service.rb

Constant Summary collapse

ExtractionError =
Class.new(StandardError)

Instance Method Summary collapse

Constructor Details

#initialize(package_file) ⇒ ExtractFileMetadataService

Returns a new instance of ExtractFileMetadataService.


10
11
12
# File 'app/services/packages/helm/extract_file_metadata_service.rb', line 10

def initialize(package_file)
  @package_file = package_file
end

Instance Method Details

#executeObject

Raises:


14
15
16
17
18
# File 'app/services/packages/helm/extract_file_metadata_service.rb', line 14

def execute
  raise ExtractionError, 'invalid package file' unless valid_package_file?

  
end