Class: Vtk::Commands::Socks

Inherits:
Thor
  • Object
show all
Defined in:
lib/vtk/commands/socks.rb,
lib/vtk/commands/socks/on.rb,
lib/vtk/commands/socks/off.rb,
lib/vtk/commands/socks/setup.rb

Overview

Handles connecting to VA network via SOCKS

Defined Under Namespace

Classes: Off, On, Setup

Instance Method Summary collapse

Instance Method Details

#offObject



34
35
36
37
38
39
40
41
# File 'lib/vtk/commands/socks.rb', line 34

def off(*)
  if options[:help]
    invoke :help, ['off']
  else
    require_relative 'socks/off'
    Vtk::Commands::Socks::Off.new(options).execute
  end
end

#onObject



48
49
50
51
52
53
54
55
# File 'lib/vtk/commands/socks.rb', line 48

def on(*)
  if options[:help]
    invoke :help, ['on']
  else
    require_relative 'socks/on'
    Vtk::Commands::Socks::On.new(options).execute
  end
end

#setupObject



20
21
22
23
24
25
26
27
# File 'lib/vtk/commands/socks.rb', line 20

def setup(*)
  if options[:help]
    invoke :help, ['setup']
  else
    require_relative 'socks/setup'
    Vtk::Commands::Socks::Setup.new(options).execute
  end
end