Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Disallow 'gear deploy' if deployment type is binary
Browse files Browse the repository at this point in the history
Bug 1023512
  • Loading branch information
ncdc committed Oct 25, 2013
1 parent 142b1e3 commit 91dcf77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/misc/bin/gear
Expand Up @@ -399,6 +399,10 @@ command :deploy do |c|
c.option "--force-clean-build", "Perform a clean build"
c.action do |args, options|
do_command(c, options) do
if ENV['OPENSHIFT_DEPLOYMENT_TYPE'] == 'binary'
raise UsageException.new("OPENSHIFT_DEPLOYMENT_TYPE is 'binary' - git-based deployments are disabled.")
end

ref_to_deploy = determine_deployment_ref(args[0])
hot_deploy_enabled = options.hot_deploy || false
force_clean_build_enabled = options.force_clean_build || false
Expand Down

0 comments on commit 91dcf77

Please sign in to comment.