Class: TestKitchen::Openstack

Inherits:
Object
  • Object
show all
Includes:
Chef::Mixin::ParamsValidate
Defined in:
lib/test-kitchen/runner/openstack/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Openstack

Returns a new instance of Openstack.



9
10
11
# File 'lib/test-kitchen/runner/openstack/dsl.rb', line 9

def initialize(&block)
  instance_eval(&block) if block_given?
end

Instance Attribute Details

#auth_url(arg = nil) ⇒ Object



25
26
27
# File 'lib/test-kitchen/runner/openstack/dsl.rb', line 25

def auth_url(arg=nil)
  set_or_return(:auth_url, arg, {})
end

#password(arg = nil) ⇒ Object



17
18
19
# File 'lib/test-kitchen/runner/openstack/dsl.rb', line 17

def password(arg=nil)
  set_or_return(:password, arg, {})
end

#tenant(arg = nil) ⇒ Object



21
22
23
# File 'lib/test-kitchen/runner/openstack/dsl.rb', line 21

def tenant(arg=nil)
  set_or_return(:tenant, arg, {})
end

#username(arg = nil) ⇒ Object



13
14
15
# File 'lib/test-kitchen/runner/openstack/dsl.rb', line 13

def username(arg=nil)
  set_or_return(:username, arg, {})
end