Created
October 23, 2014 16:37
-
-
Save steveburkett/36ab3703ccaff489dca0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
var deployConfiguration; | |
var s3_bucket; | |
if (grunt.option('release')) { | |
deployConfiguration = grunt.file.readYAML("deployment.yml"); | |
s3_bucket = 'ember-build-dsh'; | |
} else { | |
deployConfiguration = grunt.file.readYAML("deployment.development.yml"); | |
s3_bucket = 'ember-dev-dsh'; | |
}; | |
grunt.initConfig({ | |
autobots: { | |
distDir: 'dist', | |
s3: { | |
accessKeyId: deployConfiguration.s3_access_key_id, | |
secretAccessKey: deployConfiguration.s3_secret_access_key, | |
bucket: s3_bucket | |
}, | |
redis: { | |
host: deployConfiguration.redis_host, | |
port: deployConfiguration.redis_port, | |
password: deployConfiguration.redis_password | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-autobots'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment