class Loom::Shell::HarnessBlob
A blob of commands fit for sending to the harness.
Attributes
cmd_blob[R]
Public Class Methods
new(cmd_blob)
click to toggle source
# File lib/loom/shell/harness_blob.rb, line 9 def initialize(cmd_blob) @cmd_blob = cmd_blob end
Public Instance Methods
checksum()
click to toggle source
# File lib/loom/shell/harness_blob.rb, line 22 def checksum Digest::SHA1.hexdigest encoded_script end
encoded_script()
click to toggle source
# File lib/loom/shell/harness_blob.rb, line 15 def encoded_script # TODO: Fix this trailing newline hack, it is here to make encoding # consistent with the harness.sh script, which is a bit messy with how it # treats trailing newlines. Base64.encode64(cmd_blob + "\n") end