Class: Bcome::Ssh::Bootstrap
- Inherits:
-
Object
- Object
- Bcome::Ssh::Bootstrap
- Defined in:
- lib/objects/ssh/bootstrap.rb
Instance Method Summary collapse
- #bastion_host_user ⇒ Object
-
#initialize(config) ⇒ Bootstrap
constructor
A new instance of Bootstrap.
- #ssh_key_path ⇒ Object
- #user ⇒ Object
Constructor Details
#initialize(config) ⇒ Bootstrap
Returns a new instance of Bootstrap.
5 6 7 |
# File 'lib/objects/ssh/bootstrap.rb', line 5 def initialize(config) @config = config end |
Instance Method Details
#bastion_host_user ⇒ Object
19 20 21 |
# File 'lib/objects/ssh/bootstrap.rb', line 19 def bastion_host_user @config[:bastion_host_user] end |
#ssh_key_path ⇒ Object
9 10 11 12 13 |
# File 'lib/objects/ssh/bootstrap.rb', line 9 def ssh_key_path key_path = `eval directory=#{@config[:ssh_key_path]}; echo $directory` key_path =~ /(.+)\n/ Regexp.last_match(1) end |
#user ⇒ Object
15 16 17 |
# File 'lib/objects/ssh/bootstrap.rb', line 15 def user @config[:user] end |