Simple Auto-installer for Web Apps
Currently "works" example in tests/example/gui.rb
Keep waiting for new version
Structure:
files:
here should go all of external files like .zip or web app config files
install:
Here goes all install scripts.
translations:
Here goes yml files with translations in format 2_lang_char.yml
additional:
Additional ruby script
Validator:
Validator scripts for each method.
config.yml:
main config.
Install:
Here goes rb scripts responsible for installing on server. They should be named like : method.rb there is one exception global.rb this is script which is used then on different methods we make same steps.
Available methods imported from :
selected method InstallHelper
Example file :
setup # this command initializes required values like ftp connection in ftp method
unzip "files/joomla.zip", "files/joomla" #_ command unpack joomla.zip to directory "files/joomla"_
move_directory "files/joomla", $user_input["path"].value # moves directory files/joomla to desired directory on remote or local machine
true
translations:
should contain files with translations to GUI like en.yml or pl.yml.
additional:
Additional files which are used by installer
- finish.rb
Invoked after success installation. Available methods:
validator:
validates inputs scripts are named after method for e.g. local.rb or ftp.rb.
How to write script :
check :for=> Array of user_inputs names which are going to be validated, :then=> Array of user_inputs which have to be filled before function runs do
block of validating code
end
available methods from :
- MethodValidateHelper
- ModuleValidateHelper
config.yml:
methods:
- available methods to install
lang:
submodules:
- submodules available for this module