Module: FseventsToVm::SshConfig
- Defined in:
- lib/fsevents_to_vm/ssh_config.rb
Class Method Summary collapse
Class Method Details
.fetch(ssh_config_file) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/fsevents_to_vm/ssh_config.rb', line 3 def self.fetch(ssh_config_file) if ssh_config_file File.open(ssh_config_file, 'rb') else ssh_config = `dinghy ssh-config` raise("Could not read Vagrant VM ssh config") unless $?.success? file = Tempfile.new('fsevents-ssh-config') file.write(ssh_config) file.flush file end end |