class Candilano::Programs::Init

Defined in:

lib/programs/init.cr

Constant Summary

TEMPLATE = "---\n app_name: 'your-app-name'\n repo_url: 'git@github:repo.git'\n deploy_to: '/location/to/deploy'\n branch: 'master'\n keep_releases: 5\n restart_command: 'service your-app-name restart'\n\n # Optionally, set a migrate command for database migrations\n # It will execute on the 'db' role only when it's present.\n # migrate_command: 'amber db migrate'\n\n ssh:\n user: user\n password: password\n port: 22\n key: '~/.ssh/id_rsa'\n forward_agent: true\n\n # linked_files:\n # - 'config/settings.yml'\n\n # linked_directories:\n # - 'log'\n # - 'tmp'\n\n servers:\n - host: 127.0.0.1\n roles:\n - web\n - db\n # - host: 127.0.0.1\n # roles:\n # - web\n\n # hooks:\n # before:\n # - command: 'free'\n # task_group: 'rollback:get_previous_version'\n # target: 'remote'\n # on_role: 'db'\n # after:\n # - command: 'free'\n # task_group: 'rollback:get_previous_version'\n # target: 'local'\n "

Instance Method Summary

Instance Method Detail

def create_config(path) #

[View source]
def run #

[View source]