Method: BuildCloud::IAMManagedPolicy#read
- Defined in:
- lib/build-cloud/iammanagedpolicy.rb
#read ⇒ Object Also known as: fog_object
Fog only partly implements collection behaviour for managed policies Work around this using each() - and not, for example, select()
43 44 45 46 47 |
# File 'lib/build-cloud/iammanagedpolicy.rb', line 43 def read @iam.managed_policies.each do |item| return item if item.name == [:name] end end |