Sha256: 1ac9c28190e29ce2c3988edeb8caf18bb0577904982372f5863f2a53651a6c36

Contents?: true

Size: 1.8 KB

Versions: 37

Compression:

Stored size: 1.8 KB

Contents

# Application name

**Key**: name  
**Default value**: The directory name of the application's source path

The name of the application is primarily used for organizational and display purposes.  Application names are not included with
dependency metadata information included in cached files.

```yml
source_path: path/to/application1
name: application1
```

## Dynamically generated application names

### Source path directory name

When not specified, an application's name will be the directory name from the application's source path.

```yml
# if not explicitly set the name will be inferred from the source path
source_path: path/to/application1
# name: application1

# or, use the `directory_name` name generator to explicitly set this behavior
source_path: path/to/application1
name:
  generator: directory_name
# name: application1
```

### Relative path from configuration root

Application names can be created from the path from the configuration root to the application source path.
This can be useful when specifying multiple applications using a glob pattern in a directory structure where directory names
are not unique.

As an example, given the following directory structure and configuration YML, the resulting application names
would be `linux.installer`, `windows.installer` and `mac.installer`.  The optional arguments `separator` and `depth` are used
to better control the resulting application name.

```text
path
|_to
  |_linux
    |_installer
  |_windows
    |_installer
  |_mac
    |_installer
```

```yml
source_path: '**/installer'
name:
  generator: relative_path
  # separator controls what character separates path parts in the application name
  # default: "-"
  separator: '.'
  # depth controls how many of the path parts are used in the application name
  # default: 0 / all path parts
  depth: 2
```

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
licensed-5.0.3 docs/configuration/application_name.md
licensed-5.0.2 docs/configuration/application_name.md
licensed-5.0.1 docs/configuration/application_name.md
licensed-5.0.0 docs/configuration/application_name.md
licensed-4.5.0 docs/configuration/application_name.md
licensed-4.4.0 docs/configuration/application_name.md
licensed-4.3.1 docs/configuration/application_name.md
licensed-4.3.0 docs/configuration/application_name.md
licensed-4.2.0 docs/configuration/application_name.md
licensed-4.1.0 docs/configuration/application_name.md
licensed-4.0.4 docs/configuration/application_name.md
licensed-4.0.3 docs/configuration/application_name.md
licensed-4.0.2 docs/configuration/application_name.md
licensed-4.0.1 docs/configuration/application_name.md
licensed-4.0.0 docs/configuration/application_name.md
licensed-3.9.1 docs/configuration/application_name.md
licensed-3.9.0 docs/configuration/application_name.md
licensed-3.8.0 docs/configuration/application_name.md
licensed-3.7.5 docs/configuration/application_name.md
licensed-3.7.4 docs/configuration/application_name.md