Class: Kybus::CLI::Bot::DockerfileGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/kybus/cli/bot/file_providers/dockerfile_generator.rb

Instance Method Summary collapse

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

#generateObject



12
13
14
# File 'lib/kybus/cli/bot/file_providers/dockerfile_generator.rb', line 12

def generate
  @file_writer.write('Dockerfile', dockerfile_content)
end