Sha256: bc35a2ec1287b441a32785ffc68984b86b2682631beb5f7536da0acbd3280cdc

Contents?: true

Size: 972 Bytes

Versions: 22

Compression:

Stored size: 972 Bytes

Contents

#!/usr/bin/ruby1.8 -w
#
# Copyright:: Copyright 2009 Google Inc.
# Original Author:: John Woodell (mailto:woodie@google.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

module AppEngine
  if defined? Java
    import com.google.appengine.api.utils.SystemProperty

    class Runtime
      def self.environment
        SystemProperty.environment.get.to_s.downcase
      end
     
      def self.version
        SystemProperty.version.get.to_s
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
appengine-apis-0.0.35 lib/appengine-apis/runtime.rb
appengine-apis-0.0.34 lib/appengine-apis/runtime.rb
appengine-apis-0.0.33 lib/appengine-apis/runtime.rb
appengine-apis-0.0.32 lib/appengine-apis/runtime.rb
appengine-apis-0.0.31 lib/appengine-apis/runtime.rb
appengine-apis-0.0.30 lib/appengine-apis/runtime.rb
appengine-apis-0.0.29 lib/appengine-apis/runtime.rb
appengine-apis-0.0.28 lib/appengine-apis/runtime.rb
appengine-apis-0.0.27 lib/appengine-apis/runtime.rb
appengine-apis-0.0.25 lib/appengine-apis/runtime.rb
appengine-apis-0.0.24 lib/appengine-apis/runtime.rb
appengine-apis-0.0.23 lib/appengine-apis/runtime.rb
appengine-apis-0.0.22 lib/appengine-apis/runtime.rb
appengine-apis-0.0.21 lib/appengine-apis/runtime.rb
appengine-apis-0.0.20 lib/appengine-apis/runtime.rb
appengine-apis-0.0.19 lib/appengine-apis/runtime.rb
appengine-apis-0.0.18 lib/appengine-apis/runtime.rb
appengine-apis-0.0.17 lib/appengine-apis/runtime.rb
appengine-apis-0.0.16 lib/appengine-apis/runtime.rb
appengine-apis-0.0.15 lib/appengine-apis/runtime.rb