Sha256: 53e210fc100a002a151164ed890e04298c4f5d1a09819a30fd1bd88450f0122d
Contents?: true
Size: 1.08 KB
Versions: 5
Compression:
Stored size: 1.08 KB
Contents
# # Cookbook Name:: automate # Recipe:: _helper # # Author:: Salim Afiune (<afiune@chef.io>) # # Copyright 2015, Chef Software, Inc. # # All rights reserved - Do Not Redistribute # module Delivery module Helper # Delivery API helper # # This little helper will let us just type: # e.g. # delivery_api.get(...) # delivery_api.put(...) # delivery_api.post(...) # delivery_api.delete(...) # def delivery_api @api ||= begin Delivery::API.new(delivery_fqdn, 'admin', delivery_admin_password, delivery_enterprise) end end # Get delivery enterprise def delivery_fqdn "#{node['demo']['domain_prefix']}automate.#{node['demo']['domain']}" end def delivery_organization node['demo']['org'] end def delivery_enterprise node['demo']['enterprise'] end def delivery_admin_password node['demo']['users']['admin']['password'] end def return_key(key) key =~ /\// ? File.read(key) : key end end end
Version data entries
5 entries across 5 versions & 1 rubygems