Sha256: 554c5859edbb7fcd137da43d7affc26dd1aab6efd25ec4048cc06c300b0d0d19
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
module Brightbox class DatabaseSnapshot < Api def self.require_account? true end def self.all conn.database_snapshots.all end def self.get(id) conn.database_snapshots.get(id) end def update(options) self.class.conn.update_database_snapshot(id, options) reload self end def destroy fog_model.destroy end def self.default_field_order %i[id status created_on size name] end def to_row fog_attributes.merge( status: fog_model.state, locked: locked?, created_on: fog_model.created_at.strftime("%Y-%m-%d") ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
brightbox-cli-5.0.0 | lib/brightbox-cli/database_snapshot.rb |
brightbox-cli-5.0.0.rc2 | lib/brightbox-cli/database_snapshot.rb |
brightbox-cli-5.0.0.rc1 | lib/brightbox-cli/database_snapshot.rb |