class Chef::Knife
Public Instance Methods
iam_name_from_profile(profile)
click to toggle source
# File lib/chef/knife/cs_base.rb, line 112 def iam_name_from_profile(profile) # The IAM profile object only contains the name as part of the arn if profile && profile.key?('arn') name = profile['arn'].split('/')[-1] end name ||= '' end