Sha256: 8c69952eb068fa69e2fb3bdab1ac573c9e836c5234ade51d34fb3fc2ce44adb0

Contents?: true

Size: 304 Bytes

Versions: 5

Compression:

Stored size: 304 Bytes

Contents

module Rsh
  module Drivers
    class Abstract
      attr_reader :options
    
      def initialize options = {}
        @options = options
      end
    
      def bulk &b
        b.call
      end
    
      def generate_tmp_dir_name
        "/tmp/ssh_tmp_dir_#{rand(10**6)}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rsh2-0.0.4 lib/rsh/drivers/abstract.rb
rsh2-0.0.3 lib/rsh/drivers/abstract.rb
rsh2-0.0.2 lib/rsh/drivers/abstract.rb
rsh2-0.0.1 lib/rsh/drivers/abstract.rb
rssh-0.0.1 lib/rsh/drivers/abstract.rb