Sha256: 078daa756b1382f2816a604e119edabd80a2c611508de199de4a4803460c089e

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

module Hobo
  module Lib
    module HostCheck
      def ssh_present
        begin
          shell "ssh -V"
        rescue Errno::ENOENT
          raise Hobo::MissingDependency.new("ssh")
        end
      end

      def php_present
        begin
          shell "php -v"
        rescue Errno::ENOENT
          raise Hobo::MissingDependency.new("php")
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hobo-inviqa-0.0.7 lib/hobo/lib/host_check/deps.rb
hobo-inviqa-0.0.6 lib/hobo/lib/host_check/deps.rb