Class: Rubysmith::Builders::Docker::Entrypoint

Inherits:
Abstract
  • Object
show all
Defined in:
lib/rubysmith/builders/docker/entrypoint.rb

Overview

Builds Docker entrypoint script.

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from Rubysmith::Builders::Abstract

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
20
# File 'lib/rubysmith/builders/docker/entrypoint.rb', line 12

def call
  return false unless settings.build_docker

  builder.call(settings.merge(template_path: "%project_name%/bin/docker/entrypoint.erb"))
         .render
         .permit 0o755

  true
end