Sha256: e2b79ac9777dfb086e58e69447a84d9069f8b82056edd7b5ab994b9cc5c8d3c7

Contents?: true

Size: 542 Bytes

Versions: 47

Compression:

Stored size: 542 Bytes

Contents

class Application < Rhosync::Base
  class << self
    def authenticate(username,password,session)
      session[:auth] = "delegated"
      raise RuntimeError.new('server error') if password == 'server error'
      raise LoginException.new('login exception') if password == 'wrongpass'
      password == 'wrongpassnomsg' ? false : true
    end
    
    # Add hooks for application startup here
    # Don't forget to call super at the end!
    def initializer(path)
      super
    end
  end
end

Application.initializer(File.dirname(__FILE__))

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
rhosync-2.0.0.beta10 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.beta9 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.beta8 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.beta7 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.beta6 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.beta4 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.beta3 spec/apps/rhotestapp/application.rb