Sha256: e03eb65fc695dab0cdea02c994e8ddca9ffb17d61f0002d7a767c485ae29a13e
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
module Hobo module Lib module HostCheck def ssh_present advice = "The SSH command could not be located on your system.\n\n" if OS.windows? advice += "To make SSH available you must re-install git using the installer from http://git-scm.com/downloads ensuring you select the 'Use git and unix tools everywhere' option." else advice += "Please install openssh using your package manager." end begin shell "ssh -V" rescue Errno::ENOENT raise Hobo::HostCheckError.new("SSH is missing", advice) end end def php_present advice = <<-EOF The PHP command could not be located on your system. This is an optional command that can speed up composer dependency installs. Please install it from your package manager ensuring that the following command does not produce any errors: php -r "readfile('https://getcomposer.org/installer');" | php EOF begin shell "php --version" rescue Errno::ENOENT raise Hobo::HostCheckError.new("PHP is missing", advice) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems