Method: ConfCtl::MachineControl#interactive_shell

Defined in:
lib/confctl/machine_control.rb

#interactive_shellObject



26
27
28
29
30
31
32
# File 'lib/confctl/machine_control.rb', line 26

def interactive_shell
  if machine.localhost?
    Kernel.system(Etc.getpwuid(0).shell)
  else
    Kernel.system(*ssh_args)
  end
end