Permalink
Browse files

move wardenized services under ng

Change-Id: I1bed01124b442961c48c798c350bc54eb792a4d8
  • Loading branch information...
1 parent b77c579 commit 27154a7b770c7c1ae65b35b17fc13bb90f1615dd Frank Lu committed Sep 28, 2012
Showing 687 changed files with 20,076 additions and 2,634 deletions.
View
@@ -12,7 +12,7 @@ gem "dalli"
gem 'vcap_common', :require => ['vcap/common', 'vcap/component'], :git => 'git://github.com/cloudfoundry/vcap-common.git', :ref => 'fd6b6d91'
gem 'vcap_logging', :require => ['vcap/logging'], :git => 'git://github.com/cloudfoundry/common.git', :ref => 'b96ec1192'
-gem 'vcap_services_base', :git => 'git://github.com/cloudfoundry/vcap-services-base.git', :ref => '1142d8e7a0'
+gem 'vcap_services_base', :git => 'git://github.com/cloudfoundry/vcap-services-base.git', :ref => 'db367f31'
gem 'warden-client', :require => ['warden/client'], :git => 'git://github.com/cloudfoundry/warden.git', :ref => '21f9a32ab50'
gem 'warden-protocol', :require => ['warden/protocol'], :git => 'git://github.com/cloudfoundry/warden.git', :ref => '21f9a32ab50'
View
@@ -32,8 +32,8 @@ GIT
GIT
remote: git://github.com/cloudfoundry/vcap-services-base.git
- revision: 1142d8e7a0cf3e9aaf404b12430d35ba0f41f81a
- ref: 1142d8e7a0
+ revision: db367f3166b7ee63c8a4b4d40fd948babc407370
+ ref: db367f31
specs:
vcap_services_base (0.1.16)
curb (~> 0.7.16)
@@ -27,6 +27,7 @@ class VCAP::Services::Memcached::NodeBin < VCAP::Services::Base::NodeBin
options[:max_clients] = parse_property(config, "max_clients", Integer, :optional => true)
options[:memcached_memory] = parse_property(config, "memcached_memory", Integer)
options[:sasl_enabled] = parse_property(config, "sasl_enabled", Boolean, :optional => true)
+ options[:run_as_user] = parse_property(config, "run_as_user", String, :optional => true)
options
end
@@ -1,15 +1,20 @@
# Copyright (c) 2009-2011 VMware, Inc.
# This code is based on Redis as a Service.
-class VCAP::Services::Memcached::MemcachedError < VCAP::Services::Base::Error::ServiceError
- # 31200 - 31299 Memcached-specific Error
- MEMCACHED_SAVE_INSTANCE_FAILED = [31200, HTTP_INTERNAL, "Could not save instance: %s"]
- MEMCACHED_DESTROY_INSTANCE_FAILED = [31201, HTTP_INTERNAL, "Could not destroy instance: %s"]
- MEMCACHED_FIND_INSTANCE_FAILED = [31202, HTTP_NOT_FOUND, "Could not find instance: %s"]
- MEMCACHED_START_INSTANCE_FAILED = [31203, HTTP_INTERNAL, "Could not start instance: %s"]
- MEMCACHED_CLEANUP_INSTANCE_FAILED = [31204, HTTP_INTERNAL, "Could not cleanup instance, the reasons: %s"]
- MEMCACHED_CONNECT_INSTANCE_FAILED = [31205, HTTP_INTERNAL, "Could not connect memcached instance: %s"]
- MEMCACHED_SET_INSTANCE_PASS_FAILED = [31206, HTTP_INTERNAL, "Could not set memcached instance password"]
- MEMCACHED_RESTORE_FILE_NOT_FOUND = [31207, HTTP_INTERNAL, "Could not find memcached restore data file %s"]
- MEMCACHED_INVALID_PLAN = [31208, HTTP_INTERNAL, 'Invalid plan %s.']
+module VCAP
+ module Services
+ module Memcached
+ class MemcachedError < VCAP::Services::Base::Error::ServiceError
+ # 31200 - 31299 Memcached-specific Error
+ MEMCACHED_SAVE_INSTANCE_FAILED = [31200, HTTP_INTERNAL, "Could not save instance: %s"]
+ MEMCACHED_DESTROY_INSTANCE_FAILED = [31201, HTTP_INTERNAL, "Could not destroy instance: %s"]
+ MEMCACHED_FIND_INSTANCE_FAILED = [31202, HTTP_NOT_FOUND, "Could not find instance: %s"]
+ MEMCACHED_START_INSTANCE_FAILED = [31203, HTTP_INTERNAL, "Could not start instance: %s"]
+ MEMCACHED_CLEANUP_INSTANCE_FAILED = [31204, HTTP_INTERNAL, "Could not cleanup instance, the reasons: %s"]
+ MEMCACHED_CONNECT_INSTANCE_FAILED = [31205, HTTP_INTERNAL, "Could not connect memcached instance"]
+ MEMCACHED_SET_INSTANCE_PASS_FAILED = [31206, HTTP_INTERNAL, "Could not set memcached instance password"]
+ MEMCACHED_RESTORE_FILE_NOT_FOUND = [31207, HTTP_INTERNAL, "Could not find memcached restore data file %s"]
+ end
+ end
+ end
end
Oops, something went wrong.

0 comments on commit 27154a7

Please sign in to comment.