Module: Tddium

Defined in:
lib/tddium/ssh.rb,
lib/tddium.rb,
lib/tddium/util.rb,
lib/tddium/scm/hg.rb,
lib/tddium/script.rb,
lib/tddium/cli/api.rb,
lib/tddium/scm/git.rb,
lib/tddium/scm/scm.rb,
lib/tddium/version.rb,
lib/tddium/cli/show.rb,
lib/tddium/cli/util.rb,
lib/tddium/cli/suite.rb,
lib/tddium/cli/config.rb,
lib/tddium/cli/prompt.rb,
lib/tddium/cli/tddium.rb,
lib/tddium/agent/tddium.rb,
lib/tddium/cli/timeformat.rb,
lib/tddium/cli/commands/hg.rb,
lib/tddium/cli/text_helper.rb,
lib/tddium/cli/commands/web.rb,
lib/tddium/cli/commands/keys.rb,
lib/tddium/cli/commands/spec.rb,
lib/tddium/cli/commands/stop.rb,
lib/tddium/cli/commands/login.rb,
lib/tddium/cli/commands/rerun.rb,
lib/tddium/cli/commands/suite.rb,
lib/tddium/cli/commands/config.rb,
lib/tddium/cli/commands/github.rb,
lib/tddium/cli/commands/heroku.rb,
lib/tddium/cli/commands/logout.rb,
lib/tddium/cli/commands/server.rb,
lib/tddium/cli/commands/status.rb,
lib/tddium/cli/commands/account.rb,
lib/tddium/cli/commands/activate.rb,
lib/tddium/cli/commands/describe.rb,
lib/tddium/cli/commands/password.rb,
lib/tddium/cli/commands/find_failing.rb

Overview

Copyright © 2011, 2012, 2013, 2014 Solano Labs All Rights Reserved

Defined Under Namespace

Modules: TextHelper, TimeFormat Classes: ApiConfig, BuildAgent, Git, Hg, RepoConfig, SCM, Scripts, Ssh, TddiumAPI, TddiumCli, TddiumError

Constant Summary collapse

VERSION =
"1.25.5"

Class Method Summary collapse

Class Method Details

.message_pack(value) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/tddium/util.rb', line 23

def self.message_pack(value)
  io = StringIO.new
  if RUBY_VERSION =~ /^1[.]([0-8]|9[.][0-2])/ then
    io.set_encoding("UTF-8")
  else
    io.set_encoding("UTF-8", "UTF-8")
  end
  packer = ::MessagePackPure::Packer.new(io)
  packer.write(value)
  result = io.string
  return result
end