Method: Passify::CLI#list
- Defined in:
- lib/passify/cli.rb
#list ⇒ Object
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/passify/cli.rb', line 110 def list check_for_passify Dir.foreach(VHOSTS_DIR) do |entry| if File.file?("#{VHOSTS_DIR}/#{entry}") host = entry[0..-12] dir = directory_for_host(host) say " #{host} --> #{Dir.exists?(dir) ? dir : "[REMOVED]"}" end end end |