mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-11-03 16:44:05 +00:00
A couple formating changes to Task
This commit is contained in:
@@ -5,8 +5,7 @@ module W3DHubLauncher
|
|||||||
|
|
||||||
IndexedFile = Data.define(:type, :path)
|
IndexedFile = Data.define(:type, :path)
|
||||||
|
|
||||||
attr_reader :request_id, :application, :channel, :installed_version, :target_version
|
attr_reader :request_id, :application, :channel, :installed_version, :target_version, :status
|
||||||
attr_reader :status
|
|
||||||
|
|
||||||
def initialize(request_id:, application:, channel:, installed_version:, target_version:)
|
def initialize(request_id:, application:, channel:, installed_version:, target_version:)
|
||||||
@request_id = request_id
|
@request_id = request_id
|
||||||
@@ -467,11 +466,11 @@ module W3DHubLauncher
|
|||||||
create_directory(File.dirname(file_path))
|
create_directory(File.dirname(file_path))
|
||||||
|
|
||||||
result = if manifest_package.download_url
|
result = if manifest_package.download_url
|
||||||
@worker.w3dhub_api.download(manifest_package.download_url, path: file_path)
|
@worker.w3dhub_api.download(manifest_package.download_url, path: file_path)
|
||||||
else
|
else
|
||||||
# TODO xD
|
# TODO xD
|
||||||
@worker.w3dhub_api.fetch_package("TODO")
|
@worker.w3dhub_api.fetch_package("TODO")
|
||||||
end
|
end
|
||||||
|
|
||||||
if result.okay?
|
if result.okay?
|
||||||
return Worker::Api::LegacyManifest.new(package_cache_path(manifest_package))
|
return Worker::Api::LegacyManifest.new(package_cache_path(manifest_package))
|
||||||
|
|||||||
Reference in New Issue
Block a user