class Takelage::MutagenSocket
takelage mutagen socket
Public Class Methods
new(args = [], local_options = {}, configuration = {})
click to toggle source
Initialize mutagen socket
Calls superclass method
# File lib/takelage/mutagen/socket/cli.rb, line 25 def initialize(args = [], local_options = {}, configuration = {}) # initialize thor parent class super args, local_options, configuration @docker_repo = config.active['docker_repo'] @username = ENV['USER'] || 'noname' @workdir = Dir.getwd inside = _docker_container_lib_check_matrjoschka @hostname = inside ? ENV['HOSTNAME'] : _docker_container_lib_hostname @hostlabel = "hostname=#{@hostname}" @takellabel = config.active['mutagen_socket_takelage_label'] end
Public Instance Methods
check(socket)
click to toggle source
# File lib/takelage/mutagen/socket/cli.rb, line 48 def check(socket) exit mutagen_socket_check socket end
create(name, containersock, hostsock)
click to toggle source
# File lib/takelage/mutagen/socket/cli.rb, line 60 def create(name, containersock, hostsock) exit mutagen_socket_create name, containersock, hostsock end
list()
click to toggle source
# File lib/takelage/mutagen/socket/cli.rb, line 72 def list socket_list = mutagen_socket_list exit false if socket_list == false say socket_list true end
terminate(socket)
click to toggle source
# File lib/takelage/mutagen/socket/cli.rb, line 87 def terminate(socket) exit mutagen_socket_terminate socket end
tidy()
click to toggle source
# File lib/takelage/mutagen/socket/cli.rb, line 99 def tidy exit mutagen_socket_tidy end