Class: Rsh::Drivers::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/rsh/drivers/abstract.rb

Direct Known Subclasses

Local, Ssh

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Abstract

Returns a new instance of Abstract.



6
7
8
# File 'lib/rsh/drivers/abstract.rb', line 6

def initialize options = {}
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/rsh/drivers/abstract.rb', line 4

def options
  @options
end

Instance Method Details

#generate_tmp_dir_nameObject



10
11
12
# File 'lib/rsh/drivers/abstract.rb', line 10

def generate_tmp_dir_name
  "/tmp/ssh_tmp_dir_#{rand(10**6)}"
end