Class: Bauble::Resources::PostgresLayer

Inherits:
Resource
  • Object
show all
Defined in:
lib/bauble/resources/postgres_layer.rb

Overview

Postgres layer

Instance Attribute Summary

Attributes inherited from Resource

#app

Instance Method Summary collapse

Methods inherited from Resource

#initialize, #resource_name

Constructor Details

This class inherits a constructor from Bauble::Resources::Resource

Instance Method Details

#bundleObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/bauble/resources/postgres_layer.rb', line 11

def bundle
  IO.popen("docker build -t bauble_postgres_layer #{__dir__}/../cli/Dockerfile.postgres } 2>&1") do |io|
    io.each do |line|
      Bauble::Cli::Logger.docker(line)
    end
  end

  IO.popen("#{docker_command} 2>&1") do |io|
    io.each do |line|
      Bauble::Cli::Logger.docker(line)
    end
  end
end

#synthesizeObject



25
26
27
# File 'lib/bauble/resources/postgres_layer.rb', line 25

def synthesize
  {}
end