2015-05-24 12:48:43 +00:00
|
|
|
module.exports = (grunt) ->
|
|
|
|
web3 = require('web3')
|
|
|
|
readYaml = require('read-yaml');
|
|
|
|
|
2015-06-28 02:20:07 +00:00
|
|
|
grunt.registerTask "deploy_contracts", "deploy code", (env_) =>
|
|
|
|
env = env_ || "development"
|
|
|
|
contractFiles = grunt.file.expand(grunt.config.get("deploy.contracts"));
|
|
|
|
destFile = grunt.config.get("deploy.dest");
|
2015-05-24 12:48:43 +00:00
|
|
|
|
2015-06-28 02:20:07 +00:00
|
|
|
Embark = require('embark-framework')
|
|
|
|
Embark.Deploy.deployContracts(env, contractFiles, destFile)
|
2015-05-24 12:48:43 +00:00
|
|
|
|