Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
113 lines (72 sloc) 2.33 KB

berrybrew Configuration

Global Config

Handles application wide configuration.

File location:

data\config.json

Available options:

root_dir

Directory where we'll house all of your Perl installations.

Default: C:\berrybrew

Values: Any directory accessible on the system.

temp_dir

Directory where we store the Perl installation zip files.

Default: C:\berrybrew\temp

Values: Any directory accessible on the system.

debug

Enables debugging output.

Default: false

Values: "true" or "false"

strawberry_url

Link to the Strawberry Perl website.

Default: http://strawberryperl.com

download_url

Link to the Strawberry Perl instance release JSON file.

Default: http://strawberryperl.com/releases.json

custom_exec

Include custom (cloned) instances when using berrybrew exec.

Default: false

Values: "true", "false"

Messages Config

Maps STDOUT message labels to their corresponding content. This configuration file is used by the Message class.

File location:

data\messages.json

The format of the file is as follows:

[
    {
        "label": "perl_not_found",
        "content": [
            "Perl not found\n",
            "the Perl you're trying to install isn't available"
        ]
    },
    {
        "label": "error",
        "content": [
            "this is a generic error message",
        ]
    }
}

Perl Config

Contains information on all Perls we have available.

File location:

data\perls.json

Example of the file's contents:

[
    {
        "name" : "5.24.0_64",
        "file" : "strawberry-perl-5.24.0.1-64bit-portable.zip",
        "url"  : "http://strawberryperl.com/download/5.24.0.1/strawberry-perl-5.24.0.1-64bit-portable.zip",
        "ver"  : "5.24.0",
        "csum" : "40094b93fdab1057598e9474767d34e810a1c383"
    },
    {
        "name" : "5.22.2_32",
        "file" : "strawberry-perl-5.22.2.1-32bit.zip",
        "url"  : "http://strawberryperl.com/download/5.22.2.1/strawberry-perl-5.22.2.1-32bit.zip",
        "ver"  : "5.22.2",
        "csum" : "6c750c56a4eccf3b5f77af56e4cee572c360a1c2"
    }
]