lib/phase/cli/deploy.rb in phase-0.0.11 vs lib/phase/cli/deploy.rb in phase-0.0.12
- old
+ new
@@ -21,15 +21,16 @@
@environment = args.first
super
end
def run
- # load_environment_config
- # create_build_dir
- # shallow_clone_repository
- # build_docker_image
- # push_docker_image
- # trigger_remote_deployment
+ if environment == "sandbox"
+ deployment = ::Phase::Deploy::SandboxDeployment.new
+ else
+ deployment = ::Phase::Deploy::Deployment.new(environment)
+ end
+
+ deployment.execute!
end
end
end
end