deployer/docs/contrib/yammer.md
Anton Medvedev 47a193f9af
Add docgen
2020-10-02 01:11:13 +03:00

2.3 KiB
Raw Blame History

yammer

Source

Yammer recipe

Installing

Require yammer recipe in your deploy.php file:

require 'contrib/yammer.php';

Add hook on deploy:

before('deploy', 'yammer:notify');

Configuration

  • yammer_url The URL to the message endpoint, default is https://www.yammer.com/api/v1/messages.json
  • yammer_token (required) Yammer auth token
  • yammer_group_id (required) - Group ID
  • yammer_title the title of application, default {{application}}
  • yammer_body notification message template, default:
    <em>{{user}}</em> deploying {{branch}} to <strong>{{target}}</strong>
    
  • yammer_success_body success template, default:
    Deploy to <strong>{{target}}</strong> successful
    
  • yammer_failure_body failure template, default:
    Deploy to <strong>{{target}}</strong> failed
    

Usage

If you want to notify only about beginning of deployment add this line only:

before('deploy', 'yammer:notify');

If you want to notify about successful end of deployment add this too:

after('success', 'yammer:notify:success');

If you want to notify about failed deployment add this too:

after('deploy:failed', 'yammer:notify:failure');

Config

yammer_url

Source

yammer_title

Source

Title of project

yammer_body

Source

Deploy message

yammer_success_body

Source

yammer_failure_body

Source

Tasks

yammer:notify

Source

yammer:notify:success

Source

yammer:notify:failure

Source