Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created May 5, 2017 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marzdgzmn/5206056d1805f46186dbc53bf9367a6f to your computer and use it in GitHub Desktop.
Save marzdgzmn/5206056d1805f46186dbc53bf9367a6f to your computer and use it in GitHub Desktop.
{ exec } = require('child_process')
EB_DIR = process.env.AWS_DIR + '/elasticbeanstalk/'
module.exports = {
deploy_application: (application_name, version, s3_bucket, s3_key, description, stack_name) ->
exec "#{EB_DIR}" + 'eb-deploy-application ' + "-a=#{application_name} -v=#{version} -s3b=#{s3_bucket} -s3k=#{s3_key} -d=#{description} -s=#{stack_name}", (error, stdout, stderr) ->
console.log stdout
console.error error
console.log stderr
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment