Class: OpsManagerUiDrivers::Version15::Settings::AWS

Inherits:
Object
  • Object
show all
Defined in:
lib/ops_manager_ui_drivers/version15/settings.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_settings) ⇒ AWS

Returns a new instance of AWS.



69
70
71
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 69

def initialize(test_settings)
  @test_settings = test_settings
end

Class Method Details

.works_with?(iaas_type) ⇒ Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 65

def self.works_with?(iaas_type)
  iaas_type == 'aws'
end

Instance Method Details

#fieldsObject



73
74
75
76
77
78
79
80
81
82
83
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 73

def fields
  {
    'access_key_id'     => test_settings.ops_manager.aws.aws_access_key,
    'secret_access_key' => test_settings.ops_manager.aws.aws_secret_key,
    'vpc_id'            => test_settings.ops_manager.aws.vpc_id,
    'security_group'    => test_settings.ops_manager.aws.security_group,
    'key_pair_name'     => test_settings.ops_manager.aws.key_pair_name,
    'ssh_private_key'   => test_settings.ops_manager.aws.ssh_key,
    'region'            => test_settings.ops_manager.aws.region,
  }
end