Method: Bolt::Transport::LXD::Connection#initialize
- Defined in:
- lib/bolt/transport/lxd/connection.rb
#initialize(target, options) ⇒ Connection
Returns a new instance of Connection.
12 13 14 15 16 17 18 19 20 |
# File 'lib/bolt/transport/lxd/connection.rb', line 12 def initialize(target, ) raise Bolt::ValidationError, "Target #{target.safe_name} does not have a host" unless target.host @target = target @user = ENV['USER'] || Etc.getlogin @options = @logger = Bolt::Logger.logger(target.safe_name) @logger.trace("Initializing LXD connection to #{target.safe_name}") end |