Class: Shippy::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/shippy/compiler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, config:) ⇒ Compiler

Returns a new instance of Compiler.



5
6
7
8
# File 'lib/shippy/compiler.rb', line 5

def initialize(app, config:)
  @app = app
  @config = config
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



3
4
5
# File 'lib/shippy/compiler.rb', line 3

def app
  @app
end

#configObject (readonly)

Returns the value of attribute config.



3
4
5
# File 'lib/shippy/compiler.rb', line 3

def config
  @config
end

Instance Method Details

#compileObject



10
11
12
13
14
15
16
# File 'lib/shippy/compiler.rb', line 10

def compile
  prep_build_dir
  write_compose_file
  write_configuration_files

  true
end