Class: Muck::ConfigDSL::SSHDSL

Inherits:
Object
  • Object
show all
Defined in:
lib/muck/config_dsl/ssh_dsl.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ SSHDSL

Returns a new instance of SSHDSL.



5
6
7
# File 'lib/muck/config_dsl/ssh_dsl.rb', line 5

def initialize(hash)
  @hash = hash
end

Instance Method Details

#key(key) ⇒ Object



13
14
15
# File 'lib/muck/config_dsl/ssh_dsl.rb', line 13

def key(key)
  @hash[:key] = key
end

#port(port) ⇒ Object



9
10
11
# File 'lib/muck/config_dsl/ssh_dsl.rb', line 9

def port(port)
  @hash[:port] = port
end

#username(username) ⇒ Object



17
18
19
# File 'lib/muck/config_dsl/ssh_dsl.rb', line 17

def username(username)
  @hash[:username] = username
end