Sha256: 906f0ec866c7cbd6e11f860064d0eb6345479fc06d98075e8b4549f84733b6df

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

require "mobilis/generic_project"

module Mobilis
class PostgresqlInstance < GenericProject

def generate
  FileUtils.mkdir_p data_dir
end

def child_env_vars
  [ ]
end

def data_dir
  "./data/#{ name }"
end

def has_local_build
  false
end

def url
  "postgres://#{ username }:#{ password }@#{ name }:5432/"
end

def username
  name
end

def password
  "#{name}_password"
end


end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mobilis-0.0.3 lib/mobilis/postgresql_instance.rb
mobilis-0.0.2 lib/mobilis/postgresql_instance.rb
mobilis-0.0.1 lib/mobilis/postgresql_instance.rb