Hi Pepe,
it should be really easy. Inploy has a support for 'templates'. A template is a module that overwrites methods, so you can have something like this for example:
module Inploy
module Templates
module Sinatra
def after_update_code
do_my_thing
end
end
end
end
and then configure your deploy.rb something like this:
deploy.template = :sinatra
deloy.host = ...
deployst. ...
The method after_update_code if called every time the code is updated, so by default it inits the submodules, copies some file, install gems, etc...
If you dont want to overwrite the entire method and just a part of it, the install gems and migrate database steps for example, you can define something like this:
module Inploy
module Templates
module Sinatra
def install_gems
end
def migrate_database
end
end
end
end
Hope that helps :)