rm -rf downloads # Use this if you want all files to be removed after uninstall
==Brief Overview of Code==
The installation process remains the same and follows the same flow of control as before.
script/install-ap calls install_bg function in app.rb and that takes care of the app installation.
In `install_bg` function we check if the app type is container and if yes then the rest is managed by `install_container_app` function. If it's not a container type app then see the else statement, where we just create a `webapp` for normal app.
if installer.kind.include? "container"
# Try installing the container app
# Mark the installation as failed if it returns false
# For container app webapp creation will be handled inside the "install_container_app" function
if !install_container_app(installer, webapp_path, identifier)
self.install_status = 999
end
else
# Create the webapp normally if its not a container app
self.create_webapp(:name => name, :path => webapp_path, :deletable => false, :custom_options => installer.webapp_custom_options, :kind => installer.kind)
end
For container type apps the `webapp` creation is handled by the `install_container_app` function itself. Please note the way we are checking if an app is of container type? Notice : `if installer.kind.include? "container"`. The idea is that we might need to handle installation of different kind of container apps differently. So on amahi.org while adding container apps, for the kind field we have to use something like : `container-php5`, `container-python`, `container-custom`, etc. So to check if an app is container type we have to see if the `installer.kind` includes "container" pattern inside it.
==Future Work==