lib/dpl/provider/deis.rb in dpl-deis-1.10.1.travis.2947.6 vs lib/dpl/provider/deis.rb in dpl-deis-1.10.1.travis.2956.6
- old
+ new
@@ -1,25 +1,14 @@
module DPL
class Provider
class Deis < Provider
def install_deploy_dependencies
- install_url = determine_install_url
context.shell "curl -sSL #{install_url} | bash -x -s #{option(:cli_version)}"
end
- #Default to installing the default v1 client. Otherwise determine if this is a v2 client
- def determine_install_url
- if option(:cli_version).nil?
- return "https://raw.githubusercontent.com/teamhephy/workflow-cli/master/install-v2.sh"
- else
- version_arg = Gem::Version.new(option(:cli_version).gsub(/^v?V?/,''))
- if version_arg >= Gem::Version.new('2.0.0')
- return "https://raw.githubusercontent.com/teamhephy/workflow-cli/master/install-v2.sh"
- else
- return "https://raw.githubusercontent.com/teamhephy/workflow-cli/master/install-v2.sh"
- end
- end
+ def install_url
+ return "https://raw.githubusercontent.com/teamhephy/workflow-cli/master/install-v2.sh"
end
def needs_key?
true
end