envbuilder v0.3 documentation

Configuration

class envbuilder.config.Config(filepath=None, config=None, name=None, args=None)

This represents the actual .env file.

get(*args, **kwargs)
Equivalent to dict.get.
parcel_dirs
The directories of all parcels specified by the user via the -p flag.
parcel_names
The names of parcels specified by the user via the -p flag.
parcels
The config sections representing all parcels specified by the user via the -p flag.
run_command(cmd, cwd=None, parcels=None, required=True)
Run a command on parcels selected from the command-line via the -p flag. The argument cmd specifies the config option name of the command, and cwd is the working directory to run the command from within. If cwd is not specified or None, it will be the name of the parcel.
select_parcels(parcel_names)
Return a subset of parcels with names in parcel_names.