Class: Flucti::Resources::DbServer

Inherits:
BasicResource
  • Object
show all
Defined in:
lib/flucti/resources/db_server.rb

Defined Under Namespace

Classes: RootUser

Instance Method Summary collapse

Methods inherited from BasicResource

#vps, #vps=, #vps_id

Instance Method Details

#rootObject



12
13
14
# File 'lib/flucti/resources/db_server.rb', line 12

def root
  RootUser.new(get(:root))
end

#to_sObject



7
8
9
10
# File 'lib/flucti/resources/db_server.rb', line 7

def to_s
  return super unless [:vps, :port].all? { |attribute| attribute_set? attribute }
  "#{vps}:#{port}"
end