Class: Kybus::CLI::Bot::DeployInitGenerator

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

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ DeployInitGenerator

Returns a new instance of DeployInitGenerator.



7
8
9
10
# File 'lib/kybus/cli/bot/deploy_init_generator.rb', line 7

def initialize(name, options)
  @file_writer = Kybus::CLI::FileWriter.new(name)
  @options = options
end

Instance Method Details

#generateObject



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

def generate
  @file_writer.write('.kybusbot.yaml', config_yaml_content)
end