Sha256: d2da0c1abfb4ed72463d6a5d38d20e5c5360cc0869a8a315d8775dc9e35575ec
Contents?: true
Size: 804 Bytes
Versions: 1
Compression:
Stored size: 804 Bytes
Contents
#!/usr/bin/env ruby require 'colorize' require 'em-deploy' if system('which ember > /dev/null 2>&1') cd = Dir.pwd if File.exist?("#{cd}/deploy.json") if File.exist?("#{cd}/.git") idx = 0 if ARGV.index('-e') idx = ARGV.index('-e') + 1 elsif ARGV.index('--environment') idx = ARGV.index('--environment') + 1 end idx > 0 ? EmDeploy::Deployment.new(ARGV[idx]) : EmDeploy::Deployment.new else puts "#{'Error'.colorize(:red)}: Not a valid git repository." end else puts "#{'Error'.colorize(:red)}: Configuration must be provided in a 'deploy.json' file in the root directory of your ember-cli project." end else puts "#{'Error'.colorize(:red)}: Ember Cli must be installed.\n\nRun 'npm install -g ember-cli'." end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
em-deploy-0.0.1 | bin/em-deploy |