Module: Cucumber::Chef::Utility::LXCHelper
- Included in:
- Cucumber::Chef::Utility
- Defined in:
- lib/cucumber/chef/utility/lxc_helper.rb
Instance Method Summary collapse
- #lxc_hostname_full ⇒ Object
- #lxc_hostname_short ⇒ Object
- #lxc_identity ⇒ Object
- #lxc_ip ⇒ Object
- #lxc_ssh_port ⇒ Object
- #lxc_user ⇒ Object
- #lxc_user_home_dir ⇒ Object
Instance Method Details
#lxc_hostname_full ⇒ Object
54 55 56 |
# File 'lib/cucumber/chef/utility/lxc_helper.rb', line 54 def lxc_hostname_full "#{lxc_hostname_short}.#{Cucumber::Chef::Config.test_lxc[:tld]}" end |
#lxc_hostname_short ⇒ Object
50 51 52 |
# File 'lib/cucumber/chef/utility/lxc_helper.rb', line 50 def lxc_hostname_short Cucumber::Chef::Config.test_lxc[:hostname] end |
#lxc_identity ⇒ Object
36 37 38 39 40 |
# File 'lib/cucumber/chef/utility/lxc_helper.rb', line 36 def lxc_identity lxc_identity = File.join(provider_dir, "id_rsa-#{lxc_user}") (lxc_identity) lxc_identity end |
#lxc_ip ⇒ Object
42 43 44 |
# File 'lib/cucumber/chef/utility/lxc_helper.rb', line 42 def lxc_ip provider_config[:ssh][:lxc_ip] end |
#lxc_ssh_port ⇒ Object
46 47 48 |
# File 'lib/cucumber/chef/utility/lxc_helper.rb', line 46 def lxc_ssh_port provider_config[:ssh][:lxc_port] end |
#lxc_user ⇒ Object
28 29 30 |
# File 'lib/cucumber/chef/utility/lxc_helper.rb', line 28 def lxc_user provider_config[:lxc_user] end |
#lxc_user_home_dir ⇒ Object
32 33 34 |
# File 'lib/cucumber/chef/utility/lxc_helper.rb', line 32 def lxc_user_home_dir build_home_dir(provider_config[:lxc_user]) end |