CrossClj

2.8.1 docs

SourceDocs



RECENT
    VARS
    credentials
    credentials-fn
    get-english-env
    getenv
    getprop
    gpg
    gpg-available?
    gpg-program
    init
    leiningen-home
    load-profiles
    load-profiles-d-file
    match-credentials
    profile-auth
    profiles
    profiles-d-profiles
    resolve-credential
    resolve-credentials

    « Index of all namespaces of this project

    Functions exposing user-level configuration.
    
    (credentials-fn)(credentials-fn file)
    Decrypt map from credentials.clj.gpg in Leiningen home if present.
    
    Private
    (get-english-env)
    (getenv name)
    Wrap System/getenv for testing purposes.
    
    (getprop prop-name)
    Wrap System/getProperty for testing purposes.
    
    (gpg & args)
    Shells out to (gpg-program) with the given arguments
    
    (gpg-available?)
    Verifies (gpg-program) exists
    
    (gpg-program)
    Lookup the gpg program to use, defaulting to 'gpg'
    
    Load the user's ~/.lein/init.clj file, if present.
    
    (leiningen-home)
    Return full path to the user's Leiningen home directory.
    
    Load profiles.clj from dir if present. Tags all profiles with its origin.
    
    Private
    (load-profiles-d-file file)
    Returns a map entry containing the filename (without .clj) associated
    with its contents. The content will be tagged with its origin.
    Private
    (match-credentials settings auth-map)
    (profile-auth settings)
    Look up credentials for a given repository in :auth profile.
    
    Load profiles.clj from your Leiningen home and profiles.d if present.
    
    Load all Clojure files from the profiles.d folder in your Leiningen home if
    present. Returns a seq with map entries of the different profiles.
    Private
    (resolve-credential source-settings result [k v])
    Resolve key-value pair from result into a credential, updating result.
    
    (resolve-credentials settings)
    Applies credentials from the environment or ~/.lein/credentials.clj.gpg
    as they are specified and available.