Module: Utils::YarnWrapper
- Included in:
- PuppetPdf::PdfCreator
- Defined in:
- lib/utils/yarn_wrapper.rb
Instance Method Summary collapse
Instance Method Details
#run_yarn(command, *args) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/utils/yarn_wrapper.rb', line 5 def run_yarn(command, *args) sh_command = <<~SH cd #{gem_path} && yarn #{Shellwords.escape(command)} #{prepare_args(args)} SH system(sh_command) end |
#validate_yarn_installation ⇒ Object
12 13 14 |
# File 'lib/utils/yarn_wrapper.rb', line 12 def validate_yarn_installation raise 'Yarn not installed!' if which_yarn_output.empty? end |