Class: Boxing::Commands::Generate

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

Overview

The Dockerfle 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



16
17
18
19
20
21
# File 'lib/boxing/commands/generate.rb', line 16

def execute
  Database.download! unless Database.exist?

  template('templates/Dockerfile.tt', 'Dockerfile', context: context.to_binding)
  template('templates/dockerignore.tt', '.dockerignore', context: context.to_binding)
end