Method: AmazonRelease#save
- Defined in:
- lib/cluster/infrastructures/amazon_release.rb
#save ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/cluster/infrastructures/amazon_release.rb', line 20 def save fields = %w(aws_id label sdb_created_at environment tag) args = fields.inject({'entry' => 'release'}) {|m, attr| m.merge attr => self.send(attr) } attributes = Amazon.to_sdb_attributes(args) amazon.sdb.put_attributes(amazon.domain, aws_id, attributes, :replace) @new_release = true self end |