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.18.beta2 spec/apps/rhotestapp/application.rb
rhosync-2.1.18.beta1 spec/apps/rhotestapp/application.rb
rhosync-2.1.17 spec/apps/rhotestapp/application.rb
rhosync-2.1.17.beta7 spec/apps/rhotestapp/application.rb
rhosync-2.1.17.beta6 spec/apps/rhotestapp/application.rb
rhosync-2.1.17.beta5 spec/apps/rhotestapp/application.rb
rhosync-2.1.17.beta4 spec/apps/rhotestapp/application.rb
rhosync-2.1.17.beta3 spec/apps/rhotestapp/application.rb
rhosync-2.1.17.beta2 spec/apps/rhotestapp/application.rb
rhosync-2.1.17.beta1 spec/apps/rhotestapp/application.rb
rhosync-2.1.16 spec/apps/rhotestapp/application.rb
rhosync-2.1.15 spec/apps/rhotestapp/application.rb
rhosync-2.1.14 spec/apps/rhotestapp/application.rb
rhosync-2.1.13 spec/apps/rhotestapp/application.rb
rhosync-2.1.12 spec/apps/rhotestapp/application.rb
rhosync-2.1.11 spec/apps/rhotestapp/application.rb
rhosync-2.1.10 spec/apps/rhotestapp/application.rb
rhosync-2.1.7 spec/apps/rhotestapp/application.rb
rhosync-2.1.6 spec/apps/rhotestapp/application.rb
rhosync-2.1.3 spec/apps/rhotestapp/application.rb