Class: Boxing::Commands::Compose

Inherits:
Base
  • Object
show all
Defined in:
lib/boxing/commands/compose.rb

Overview

The Docker Compose Generator

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Base

#prepare, source_root

Instance Method Details

#executeObject

Create Dockerfile

Since:

  • 0.1.0



13
14
15
16
17
18
19
# File 'lib/boxing/commands/compose.rb', line 13

def execute
  Database.download! unless Database.exist?

  # TODO: Allow set image registry
  # TODO: Allow set application name
  template('templates/docker-compose.yml.tt', 'docker-compose.yml', context: context.to_binding)
end