Stubbed out tasks system for installers

This commit is contained in:
2021-11-15 10:15:04 -06:00
parent 7fd38cd92d
commit dae620ccbd
14 changed files with 287 additions and 60 deletions

View File

@@ -0,0 +1,11 @@
class W3DHub
class ApplicationManager
class Importer < Task
def initialize(app_id, channel, path)
super(app_id, channel)
@path = path
end
end
end
end

View File

@@ -0,0 +1,20 @@
class W3DHub
class ApplicationManager
class Installer < Task
def setup
add_step("Fetching manifests...", :fetch_manifests)
add_step("Building package list...", :build_package_list)
add_step("Downloading packages...", :fetch_packages)
add_step("Verifying packages...", :verify_packages)
add_step("Unpacking packages...", :unpack_packages)
add_step("Crushing grapes...", :create_wine_prefix)
add_step("Installing dependencies...", :install_dependencies)
add_step("Completed.", :mark_application_installed)
end
end
end
end

View File

@@ -0,0 +1,6 @@
class W3DHub
class ApplicationManager
class Repairer < Task
end
end
end

View File

@@ -0,0 +1,6 @@
class W3DHub
class ApplicationManager
class Uninstaller < Task
end
end
end