Class: Kybus::CLI::Bot::DeployInitGenerator
- Inherits:
-
Object
- Object
- Kybus::CLI::Bot::DeployInitGenerator
- Defined in:
- lib/kybus/cli/bot/deploy_init_generator.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name, options) ⇒ DeployInitGenerator
constructor
A new instance of DeployInitGenerator.
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, ) @file_writer = Kybus::CLI::FileWriter.new(name) @options = end |
Instance Method Details
#generate ⇒ Object
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 |