Module: Charmkit::Helpers
- Defined in:
- lib/charmkit/helpers/runner.rb,
lib/charmkit/helpers/template.rb
Defined Under Namespace
Classes: TemplateRenderer
Instance Method Summary
collapse
Instance Method Details
#cmd ⇒ Object
5
6
7
|
# File 'lib/charmkit/helpers/runner.rb', line 5
def cmd
return TTY::Command.new
end
|
#template(src, dst, **context) ⇒ Object
20
21
22
23
|
# File 'lib/charmkit/helpers/template.rb', line 20
def template(src, dst, **context)
rendered = TemplateRenderer.render(File.read(src), context)
File.write(dst, rendered)
end
|