Class: Pgai::Resources::Local::Clone
- Inherits:
-
BaseRecord
- Object
- BaseRecord
- Pgai::Resources::Local::Clone
- Defined in:
- lib/pgai/resources/local/clone.rb
Instance Method Summary collapse
- #connection_string ⇒ Object
- #database_url ⇒ Object
- #with_port_forward(manager = Pgai::Commander.instance.port_manager) ⇒ Object
Methods inherited from BaseRecord
all, backend, delete, #delete, find, #klass, record_type, #save
Methods included from Attributes
#assign_attribute, #assign_attributes, #has_attribute?, included, #initialize
Instance Method Details
#connection_string ⇒ Object
17 18 19 |
# File 'lib/pgai/resources/local/clone.rb', line 17 def connection_string "'host=#{host} port=#{local_port} user=#{user} dbname=#{dbname} password=#{password}'" end |
#database_url ⇒ Object
21 22 23 |
# File 'lib/pgai/resources/local/clone.rb', line 21 def database_url "postgresql://#{user}:#{password}@#{host}:#{local_port}/#{dbname}" end |