2015-09-07 63 views
0

据我了解,hubot help命令应该列出基于每个脚本开始处的注释的所有命令。由于某些原因,它没有列出我的文件的帮助,任何人都可以发现错误?该评论应该包含在Hubot的文档中?

# Description: 
# Hubot interface to octopus deploy 
# 
# Commands: 
# hubot octo promote <project> from <env1> to <env2> - Hubot deploys the latest release of <project> on <env1> to <env2> 
# hubot octo deploy <project> version <version> to <env> - Hubot deploys the specified version of <project> to <env> 
# hubot octo status - Hubot prints a dashboard of environments and currently deployed versions. 
# 
# Author: 
# kneumei 


_ = require('underscore')._ 
q = require('q') 
util = require('util') 
.... 

完整的脚本是在这里:https://github.com/mastoj/hubot-octopus/blob/master/src/octopus.coffee

回答

0

你有没有得到这个工作?我正在努力解决同样的问题。在推送到heroku之后,它看起来像hubot-octopus模块构建得很好,我已经将它与其余模块一起包含在external-scripts.json中,但是hubot没有在帮助中列出octo命令,并且不响应octo命令。

remote: -----> Build succeeded! 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  ├── [email protected]    <---- 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  ├── [email protected] 
remote:  └── [email protected] 

UPDATE:原来,我的问题是实际上是八达API密钥的环境变量是错误的。当它没有正确设置,它只是默默地失败..我使用OCTOPUS_API_KEY如文档中所述,但实际的实现需要OCTOPUS_KEY。向hubot-octopus添加拉取请求以修复文档。