class Bosh::Template::Test::InstanceSpec
Public Class Methods
new( address: 'my.bosh.com', az: 'az1', bootstrap: false, deployment: 'my-deployment', id: 'xxxxxx-xxxxxxxx-xxxxx', index: 0, ip: '192.168.0.0', name: 'me', networks: {'network1' => {'foo' => 'bar', 'ip' => '192.168.0.0'}} )
click to toggle source
# File lib/bosh/template/test/instance_spec.rb, line 3 def initialize( address: 'my.bosh.com', az: 'az1', bootstrap: false, deployment: 'my-deployment', id: 'xxxxxx-xxxxxxxx-xxxxx', index: 0, ip: '192.168.0.0', name: 'me', networks: {'network1' => {'foo' => 'bar', 'ip' => '192.168.0.0'}} ) @address = address @az = az @bootstrap = bootstrap @deployment = deployment @id = id @index = index @ip = ip @name = name @networks = networks end
Public Instance Methods
to_h()
click to toggle source
# File lib/bosh/template/test/instance_spec.rb, line 25 def to_h { 'address' => @address, 'az' => @az, 'bootstrap' => @bootstrap, 'deployment' => @deployment, 'id' => @id, 'index' => @index, 'ip' => @ip, 'name' => @name, 'networks' => @networks, 'job' => {'name' => @name} } end