Sha256: f55151c81f53cd87a72ae75699cd355a350b38b960d806a3f0df33a13f1e28d2
Contents?: true
Size: 379 Bytes
Versions: 4
Compression:
Stored size: 379 Bytes
Contents
module Dbcp class ExecutionHost class << self def build(args) if args['ssh_uri'] SshExecutionHost.new_from_uri args['ssh_uri'] else LocalExecutionHost.new end end end # coersion causes issues when assigning rspec doubles include Virtus.value_object(coerce: false) def local? !remote? end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dbcp-0.2.1 | lib/dbcp/execution_host.rb |
dbcp-0.2.0 | lib/dbcp/execution_host.rb |
dbcp-0.1.0 | lib/dbcp/execution_host.rb |
dbcp-0.0.1 | lib/dbcp/execution_host.rb |