Module: Cucumber::Chef::Utility::LabHelper
- Included in:
- Cucumber::Chef::Utility
- Defined in:
- lib/cucumber/chef/utility/lab_helper.rb
Instance Method Summary collapse
- #lab_hostname_full ⇒ Object
- #lab_hostname_short ⇒ Object
- #lab_identity ⇒ Object
- #lab_ip ⇒ Object
- #lab_ssh_port ⇒ Object
- #lab_user ⇒ Object
- #lab_user_home_dir ⇒ Object
Instance Method Details
#lab_hostname_full ⇒ Object
54 55 56 |
# File 'lib/cucumber/chef/utility/lab_helper.rb', line 54 def lab_hostname_full "#{lab_hostname_short}.#{Cucumber::Chef::Config.test_lab[:tld]}" end |
#lab_hostname_short ⇒ Object
50 51 52 |
# File 'lib/cucumber/chef/utility/lab_helper.rb', line 50 def lab_hostname_short Cucumber::Chef::Config.test_lab[:hostname] end |
#lab_identity ⇒ Object
36 37 38 39 40 |
# File 'lib/cucumber/chef/utility/lab_helper.rb', line 36 def lab_identity lab_identity = File.join(provider_dir, "id_rsa-#{lab_user}") (lab_identity) lab_identity end |
#lab_ip ⇒ Object
42 43 44 |
# File 'lib/cucumber/chef/utility/lab_helper.rb', line 42 def lab_ip provider_config[:ssh][:lab_ip] end |
#lab_ssh_port ⇒ Object
46 47 48 |
# File 'lib/cucumber/chef/utility/lab_helper.rb', line 46 def lab_ssh_port provider_config[:ssh][:lab_port] end |
#lab_user ⇒ Object
28 29 30 |
# File 'lib/cucumber/chef/utility/lab_helper.rb', line 28 def lab_user provider_config[:lab_user] end |
#lab_user_home_dir ⇒ Object
32 33 34 |
# File 'lib/cucumber/chef/utility/lab_helper.rb', line 32 def lab_user_home_dir build_home_dir(provider_config[:lab_user]) end |