Convert rails_port definition to a resource