mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Stubbed Installer task methods
This commit is contained in:
@@ -86,12 +86,12 @@ class W3DHub
|
|||||||
|
|
||||||
# No application tasks are being done
|
# No application tasks are being done
|
||||||
def idle?
|
def idle?
|
||||||
@tasks.empty?
|
!busy?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Whether some operation is in progress
|
# Whether some operation is in progress
|
||||||
def busy?
|
def busy?
|
||||||
!idle?
|
@tasks.any? { |t| t.state == :running }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -29,8 +29,9 @@ class W3DHub
|
|||||||
@task_state = :running
|
@task_state = :running
|
||||||
|
|
||||||
Thread.new do
|
Thread.new do
|
||||||
execute_task
|
status = execute_task
|
||||||
|
|
||||||
|
@task_state = :failed unless status
|
||||||
@task_state = :complete unless @task_state == :failed
|
@task_state = :complete unless @task_state == :failed
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -93,6 +94,28 @@ class W3DHub
|
|||||||
manifests
|
manifests
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def build_package_list(manifests)
|
||||||
|
end
|
||||||
|
|
||||||
|
def fetch_packages(packages)
|
||||||
|
end
|
||||||
|
|
||||||
|
def verify_packages(packages)
|
||||||
|
end
|
||||||
|
|
||||||
|
def unpack_packages(packages)
|
||||||
|
end
|
||||||
|
|
||||||
|
def create_wine_prefix
|
||||||
|
end
|
||||||
|
|
||||||
|
def install_dependencies(packages)
|
||||||
|
end
|
||||||
|
|
||||||
|
def mark_application_installed
|
||||||
|
puts "#{@app_id} has been installed."
|
||||||
|
end
|
||||||
|
|
||||||
def fetch_manifest(category, subcategory, name, version)
|
def fetch_manifest(category, subcategory, name, version)
|
||||||
# Check for and integrity of local manifest
|
# Check for and integrity of local manifest
|
||||||
if File.exist?(Cache.package_path(category, subcategory, name, version))
|
if File.exist?(Cache.package_path(category, subcategory, name, version))
|
||||||
|
|||||||
Reference in New Issue
Block a user