config/webfaction.rb
# Test if a WebFaction object exists
Test if a WebFaction object exists
Test if a WebFaction object exists
def wf_obj_exists(type, check, value)
  objs = @wf_server.call("list_#{type}", @wf_session);
  objs.each do |obj|
    if obj[check] == value
      return true
    end
  end
  return false
end
def wf_obj_exists ( type , check , value ) objs = @wf_server . call ( "list_#{type}" , @wf_session ) ; objs . each do | obj | if obj [ check ] == value return true end end return false end
Test if a WebFaction object exists
Test if a WebFaction object exists
type
check
value