Class: Dbcp::ExecutionHost
- Inherits:
-
Object
- Object
- Dbcp::ExecutionHost
- Defined in:
- lib/dbcp/execution_host.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build(args) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/dbcp/execution_host.rb', line 4 def build(args) if args['ssh_uri'] SshExecutionHost.new_from_uri args['ssh_uri'] else LocalExecutionHost.new end end |
Instance Method Details
#local? ⇒ Boolean
16 17 18 |
# File 'lib/dbcp/execution_host.rb', line 16 def local? !remote? end |