Module: Vx::Common::Helper::UploadShCommand
- Defined in:
- lib/vx/common/helper/upload_sh_command.rb
Instance Method Summary collapse
Instance Method Details
#upload_sh_command(path, content, options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/vx/common/helper/upload_sh_command.rb', line 8 def upload_sh_command(path, content, = {}) encoded = ::Base64.encode64(content).gsub("\n", '') "(echo #{encoded} | #{upload_sh_base64_command }) > #{path}" end |