Sha256: ef2b38b51e782eb27f28f8e23a785b5de96fcae74442e8d54098646b0edf76af

Contents?: true

Size: 261 Bytes

Versions: 6

Compression:

Stored size: 261 Bytes

Contents

module Guard
  class Terminal
    class << self
      def clear
        cmd =  Gem.win_platform? ? "cls" : "clear;"
        exit_code, _, stderr = ::Guard::Sheller.system(cmd)
        fail Errno::ENOENT, stderr unless exit_code == 0
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
guard-2.8.2 lib/guard/terminal.rb
guard-2.8.1 lib/guard/terminal.rb
guard-2.8.0 lib/guard/terminal.rb
guard-2.7.3 lib/guard/terminal.rb
guard-2.7.2 lib/guard/terminal.rb
guard-2.7.1 lib/guard/terminal.rb