Method: Landlord::VirtualHost#enable!

Defined in:
lib/landlord/virtual_host.rb

#enable!Object



117
118
119
120
121
122
123
124
125
# File 'lib/landlord/virtual_host.rb', line 117

def enable!
  _config_file_path = self.config_file_path
  
  if (File.exist?(_config_file_path))
    # File already exists?!
  else
    File.rename(self.config_file_path(:disabled), _config_file_path)
  end
end