Class: Bolt::Transport::LXD

Inherits:
Simple show all
Defined in:
lib/bolt/transport/lxd.rb,
lib/bolt/transport/lxd/connection.rb

Defined Under Namespace

Classes: Connection

Instance Attribute Summary

Attributes inherited from Base

#logger

Instance Method Summary collapse

Methods inherited from Simple

#connected?, #download, #run_command, #run_script, #run_task, #upload

Methods inherited from Base

#assert_batch_size_one, #batch_command, #batch_connected?, #batch_download, #batch_script, #batch_task, #batch_task_with, #batch_upload, #batches, #connected?, #default_input_method, #download, #initialize, #run_command, #run_script, #run_task, #select_implementation, #select_interpreter, #unwrap_sensitive_args, #upload, #with_events

Constructor Details

This class inherits a constructor from Bolt::Transport::Base

Instance Method Details

#provided_featuresObject


10
11
12
# File 'lib/bolt/transport/lxd.rb', line 10

def provided_features
  ['shell']
end

#with_connection(target, options = {}) {|conn| ... } ⇒ Object

Yields:

  • (conn)

14
15
16
17
18
19
20
21
# File 'lib/bolt/transport/lxd.rb', line 14

def with_connection(target, options = {})
  Bolt::Logger.warn_once("lxd_experimental",
                         "The LXD transport is experimental, and might "\
                         "include breaking changes between minor versions.")
  conn = Connection.new(target, options)
  conn.connect
  yield conn
end