Sha256: ef359384f17c7da6d51f853e9a59bda339193c7101309dad6bd1578b56a8b9ec

Contents?: true

Size: 499 Bytes

Versions: 8

Compression:

Stored size: 499 Bytes

Contents

module Wordmove
  class Doctor
    class Ssh
      attr_reader :logger

      def initialize
        @logger = Logger.new($stdout).tap { |l| l.level = Logger::INFO }
      end

      def check!
        logger.task 'Checking SSH client'

        if system('which ssh', out: File::NULL, err: File::NULL)
          logger.success 'SSH command found'
        else
          logger.error "SSH command not found. And belive me: it's really strange it's not there."
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wordmove-6.0.0.alpha.8 lib/wordmove/doctor/ssh.rb
wordmove-6.0.0.alpha.7 lib/wordmove/doctor/ssh.rb
wordmove-6.0.0.alpha.6 lib/wordmove/doctor/ssh.rb
wordmove-6.0.0.alpha.5 lib/wordmove/doctor/ssh.rb
wordmove-6.0.0.alpha.4 lib/wordmove/doctor/ssh.rb
wordmove-6.0.0.alpha.3 lib/wordmove/doctor/ssh.rb
wordmove-6.0.0.alpha.2 lib/wordmove/doctor/ssh.rb
wordmove-6.0.0.alpha.1 lib/wordmove/doctor/ssh.rb