mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-15 16:52:34 +00:00
Stubbed Installer task methods
This commit is contained in:
@@ -86,12 +86,12 @@ class W3DHub
|
||||
|
||||
# No application tasks are being done
|
||||
def idle?
|
||||
@tasks.empty?
|
||||
!busy?
|
||||
end
|
||||
|
||||
# Whether some operation is in progress
|
||||
def busy?
|
||||
!idle?
|
||||
@tasks.any? { |t| t.state == :running }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -29,8 +29,9 @@ class W3DHub
|
||||
@task_state = :running
|
||||
|
||||
Thread.new do
|
||||
execute_task
|
||||
status = execute_task
|
||||
|
||||
@task_state = :failed unless status
|
||||
@task_state = :complete unless @task_state == :failed
|
||||
end
|
||||
end
|
||||
@@ -93,6 +94,28 @@ class W3DHub
|
||||
manifests
|
||||
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)
|
||||
# Check for and integrity of local manifest
|
||||
if File.exist?(Cache.package_path(category, subcategory, name, version))
|
||||
|
||||
Reference in New Issue
Block a user