Stubbed Installer task methods

This commit is contained in:
2021-11-15 23:13:36 -06:00
parent 1ab835ba98
commit d0d8683c4e
2 changed files with 26 additions and 3 deletions

View File

@@ -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

View File

@@ -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))