Module: Ape

Defined in:
lib/ape/html.rb,
lib/ape.rb,
lib/ape/feed.rb,
lib/ape/util.rb,
lib/ape/entry.rb,
lib/ape/names.rb,
lib/ape/crumbs.rb,
lib/ape/atomURI.rb,
lib/ape/authent.rb,
lib/ape/escaper.rb,
lib/ape/invoker.rb,
lib/ape/samples.rb,
lib/ape/service.rb,
lib/ape/version.rb,
lib/ape/reporter.rb,
lib/ape/validator.rb,
lib/ape/categories.rb,
lib/ape/collection.rb,
lib/ape/coll_element.rb,
lib/ape/print_writer.rb,
lib/ape/validator_dsl.rb,
lib/ape/invokers/getter.rb,
lib/ape/invokers/poster.rb,
lib/ape/invokers/putter.rb,
lib/ape/invokers/deleter.rb,
lib/ape/auth/wsse_credentials.rb,
lib/ape/reporters/atom_reporter.rb,
lib/ape/reporters/html_reporter.rb,
lib/ape/reporters/text_reporter.rb,
lib/ape/validators/schema_validator.rb,
lib/ape/validators/sorting_validator.rb,
lib/ape/auth/google_login_credentials.rb,
lib/ape/validators/entry_posts_validator.rb,
lib/ape/validators/media_posts_validator.rb,
lib/ape/validators/sanitization_validator.rb,
lib/ape/validators/media_linkage_validator.rb,
lib/ape/validators/service_document_validator.rb

Overview

Copyright © 2006 Sun Microsystems, Inc. All rights reserved See the included LICENSE file for details.

Defined Under Namespace

Modules: Names, Util, VERSION, ValidatorDsl Classes: Ape, AtomReporter, AtomURI, Authent, AuthenticationError, Categories, CollElement, Collection, Crumbs, Deleter, Entry, EntryPostsValidator, Escaper, Feed, Getter, GoogleLoginAuthError, GoogleLoginAuthUnknownError, GoogleLoginCredentials, HTML, HtmlReporter, Invoker, MediaLinkageValidator, MediaPostsValidator, Poster, Printwriter, Putter, Reporter, Samples, SamplesContext, SanitizationValidator, SchemaValidator, Service, ServiceDocumentValidator, SortingValidator, TextReporter, ValidationError, Validator, WsseCredentials

Class Method Summary collapse

Class Method Details

.confObject



11
12
13
# File 'lib/ape.rb', line 11

def Ape.conf
  @CONF
end

.homeObject



19
20
21
# File 'lib/ape.rb', line 19

def Ape.home
  @CONF[:HOME] || ENV["APE_HOME"] || File.join(home_directory,".ape")
end

.home=(home) ⇒ Object



15
16
17
# File 'lib/ape.rb', line 15

def Ape.home=(home)
  @CONF[:HOME] = home
end

.home_directoryObject



23
24
25
# File 'lib/ape.rb', line 23

def Ape.home_directory
  ENV["HOME"] || (ENV["HOMEPATH"] && "#{ENV["HOMEDRIVE"]}#{ENV["HOMEPATH"]}") || "/"
end