class Serverspec::Type::RabbitmqVhostList
Public Instance Methods
has_vhost?(vhost)
click to toggle source
# File lib/serverspec_extra_types/types/rabbitmq_vhost_list.rb, line 7 def has_vhost?(vhost) inspection.find { |str| str['name'] == vhost } end
inspection()
click to toggle source
# File lib/serverspec_extra_types/types/rabbitmq_vhost_list.rb, line 19 def inspection @inspection ||= ::MultiJson.load(get_inspection.stdout) end
to_s()
click to toggle source
# File lib/serverspec_extra_types/types/rabbitmq_vhost_list.rb, line 11 def to_s 'RabbitMQ VHosts List' end
url()
click to toggle source
# File lib/serverspec_extra_types/types/rabbitmq_vhost_list.rb, line 15 def url "#{@url_base}/api/vhosts" end