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.1.2 spec/apps/rhotestapp/application.rb
rhosync-2.1.1 spec/apps/rhotestapp/application.rb
rhosync-2.1.0 spec/apps/rhotestapp/application.rb
rhosync-2.1.0.beta.2 spec/apps/rhotestapp/application.rb
rhosync-2.1.0.beta.1 spec/apps/rhotestapp/application.rb
rhosync-2.0.9 spec/apps/rhotestapp/application.rb
rhosync-2.0.8 spec/apps/rhotestapp/application.rb
rhosync-2.0.7 spec/apps/rhotestapp/application.rb
rhosync-2.0.6 spec/apps/rhotestapp/application.rb
rhosync-2.0.5 spec/apps/rhotestapp/application.rb
rhosync-2.0.4 spec/apps/rhotestapp/application.rb
rhosync-2.0.3 spec/apps/rhotestapp/application.rb
rhosync-2.0.2 spec/apps/rhotestapp/application.rb
rhosync-2.0.1 spec/apps/rhotestapp/application.rb
rhosync-2.0.0 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.rc2 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.rc1 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.beta13 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.beta12 spec/apps/rhotestapp/application.rb
rhosync-2.0.0.beta11 spec/apps/rhotestapp/application.rb