Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Print message if cf cli is not installed
Browse files Browse the repository at this point in the history
[#113218545]

Signed-off-by: Emily Casey <[email protected]>
  • Loading branch information
mdelillo authored and ekcasey committed Feb 8, 2016
1 parent d8ef740 commit e4718ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Vagrant.configure("2") do |config|
end

config.vm.provision "shell", run: "always" do |s|
cf_cli_present = system("which cf > /dev/null")
s.inline = <<-SCRIPT
set -e
if public_ip="$(curl -m 2 -s http://169.254.169.254/latest/meta-data/public-ipv4)"; then
Expand All @@ -68,10 +69,13 @@ Vagrant.configure("2") do |config|
domain="#{ENV["MICROPCF_DOMAIN"] || local_default_domain}"
fi
/var/micropcf/run "$domain"
#{cf_cli_present} || echo "Don't have the cf command line utility? Download it from https://github.com/cloudfoundry/cli/releases"
SCRIPT
end

end


def calculate_resource_allocation
cpus = ENV['VM_CORES'] ? ENV['VM_CORES'].to_i : nil
memory = ENV['VM_MEMORY'] ? ENV['VM_MEMORY'].to_i : nil
Expand Down

0 comments on commit e4718ff

Please sign in to comment.