Class: Kybus::CLI::Bot::DockerfileGenerator
- Inherits:
-
Object
- Object
- Kybus::CLI::Bot::DockerfileGenerator
- Defined in:
- lib/kybus/cli/bot/file_providers/dockerfile_generator.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name) ⇒ DockerfileGenerator
constructor
A new instance of DockerfileGenerator.
Constructor Details
#initialize(name) ⇒ DockerfileGenerator
Returns a new instance of DockerfileGenerator.
7 8 9 10 |
# File 'lib/kybus/cli/bot/file_providers/dockerfile_generator.rb', line 7 def initialize(name) @name = name @file_writer = Kybus::CLI::FileWriter.new(name) end |
Instance Method Details
#generate ⇒ Object
12 13 14 |
# File 'lib/kybus/cli/bot/file_providers/dockerfile_generator.rb', line 12 def generate @file_writer.write('Dockerfile', dockerfile_content) end |