lita-ey-tools
lita-ey-tools is a handler for Lita that provides some EngineYard tools.
Installation
Add lita-ey-tools to your Lita instance's Gemfile:
gem "lita-ey-tools"
Don't forget to include your EngineYard API key on the lita_config.rb file:
config.handlers.ey.api_token = "YOUR_EY_API_TOKEN"
config.handlers.ey.apps = {
"my_app_name_for_lita" => {
"ey_name" => "my_app_name_at_ey",
"app_dir" => "/data/myapp/current",
"envs" => {
"test" => {
ey_name: "my_app_testing",
auth_group: "devs",
default_branch: "develop",
app_url: "test.myapp.com",
db_name: "db_name",
db_host: "db.hostname.com",
db_user: "db_user",
db_password: "db_password"
},
"stage" => {
ey_name: "my_app_staging",
auth_group: "testers",
default_branch: "stage"
app_url: "stage.myapp.com",
db_name: "db_name",
db_host: "db.hostname.com",
db_user: "db_user",
db_password: "db_password"
},
"production" => {
ey_name: "my_app_production",
auth_group: "devops",
default_branch: "master"
app_url: "www.myapp.com",
db_name: "db_name",
db_host: "db.hostname.com",
db_user: "db_user",
db_password: "db_password"
}
}
}
}
Usage
You: @Lita ey dbdump <app> <env>