Method: Infrastructure#to_credentials
- Defined in:
- lib/cluster/infrastructure.rb
#to_credentials ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/cluster/infrastructure.rb', line 87 def to_credentials opts = @options.marshal_dump.keys.inject({}) {|m, k| if k.eql? :role m else m.merge k.to_s => @options.send(k) end } {'cluster_name' => self.class.cluster_name, self.class.to_s.downcase => opts } end |