Class: OsCtld::Container::Hooks::VethUp

Inherits:
Base
  • Object
show all
Defined in:
lib/osctld/container/hooks/veth_up.rb

Instance Attribute Summary

Attributes inherited from Base

#ct, #opts

Instance Method Summary collapse

Methods inherited from Base

blocking, blocking?, #blocking?, #exec, #executable, exist?, hook, hook_path, #hook_path, #initialize, run

Constructor Details

This class inherits a constructor from OsCtld::Container::Hooks::Base

Instance Method Details

#environmentObject (protected)



9
10
11
12
13
14
# File 'lib/osctld/container/hooks/veth_up.rb', line 9

def environment
  super.merge({
    'OSCTL_HOST_VETH' => opts[:host_veth],
    'OSCTL_CT_VETH' => opts[:ct_veth],
  })
end