Class: Boxing::Commands::Generate
- Defined in:
- lib/boxing/commands/generate.rb
Overview
The Dockerfle Generator
Instance Method Summary collapse
-
#execute ⇒ Object
Create Dockerfile.
Methods inherited from Base
Instance Method Details
#execute ⇒ Object
Create Dockerfile
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 |