Sha256: a7fc56b8c4d815a78c7883aba383a7bb427bada43bff6ddccb74080d2ce1fd3b
Contents?: true
Size: 779 Bytes
Versions: 4
Compression:
Stored size: 779 Bytes
Contents
require 'csv' require_relative 'constants' module Sshman class Utils def self.ensure_csv_file unless File.exist?(SERVERS_CSV) File.open(SERVERS_CSV, 'w') { |file| file.puts "alias,hostname,port,username,ssh_key" } puts "#{GREEN}Created servers file at #{SERVERS_CSV}.#{RESET_COLOR}" end File.chmod(0600, SERVERS_CSV) end def self.display_help puts <<-HELP Usage: sshman [COMMAND] Commands: list List all saved servers add Add a new server configuration edit Edit an existing server delete Delete a server by its alias connect Connect to a server by its alias version Display the current version help Display this help information HELP end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sshman-0.3.3 | lib/sshman/utils.rb |
sshman-0.3.2 | lib/sshman/utils.rb |
sshman-0.3.1 | lib/sshman/utils.rb |
sshman-0.3.0 | lib/sshman/utils.rb |