Class: Oncall::Invocations::InitRunner
- Inherits:
-
BaseRunner
- Object
- BaseRunner
- Oncall::Invocations::InitRunner
- Defined in:
- lib/oncall/invocations/init_runner.rb
Instance Method Summary collapse
Instance Method Details
#run(_err, _out) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/oncall/invocations/init_runner.rb', line 4 def run(_err, _out) config_template_path = File.join(File.dirname(__FILE__), '..', 'templates', 'oncall.yml.template') template = File.read(config_template_path) File.open(File.join(Dir.getwd, 'oncall.yml'), 'w') do |file| file.write(template) end end |