mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Stubbed out tasks system for installers
This commit is contained in:
11
lib/application_manager/tasks/importer.rb
Normal file
11
lib/application_manager/tasks/importer.rb
Normal 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
|
||||
20
lib/application_manager/tasks/installer.rb
Normal file
20
lib/application_manager/tasks/installer.rb
Normal 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
|
||||
6
lib/application_manager/tasks/repairer.rb
Normal file
6
lib/application_manager/tasks/repairer.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class W3DHub
|
||||
class ApplicationManager
|
||||
class Repairer < Task
|
||||
end
|
||||
end
|
||||
end
|
||||
6
lib/application_manager/tasks/uninstaller.rb
Normal file
6
lib/application_manager/tasks/uninstaller.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class W3DHub
|
||||
class ApplicationManager
|
||||
class Uninstaller < Task
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user