class Squarectl::Config::SquarectlEnvironment

Overview

A single deployment environment (e.g. development, staging, production, or the special all holding global defaults). Groups every resolvable attribute plus the conventional per-environment file locations.

:nodoc:

Included Modules

Defined in:

squarectl/config/squarectl_environment.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def compose_file_base_for(target) #

Conventional compose files always prepended to the resolved list, in load order: the shared base, the per-target common file, then the per-environment file.


[View source]
def compose_file_common_for(target) #

Conventional compose files always prepended to the resolved list, in load order: the shared base, the per-target common file, then the per-environment file.


[View source]
def compose_file_env_for(target) #

Conventional compose files always prepended to the resolved list, in load order: the shared base, the per-target common file, then the per-environment file.


[View source]
def compose_files : Array(ComposeFile) #

[View source]
def compose_files=(compose_files : Array(ComposeFile)) #

[View source]
def config_files : Hash(String, String) #

[View source]
def config_files=(config_files : Hash(String, String)) #

[View source]
def development? #

The development environment is special-cased: it is only allowed with the compose target (enforced in Squarectl.find_environment).


[View source]
def domains : Array(Domain) #

[View source]
def domains=(domains : Array(Domain)) #

[View source]
def env_vars : Array(EnvVar) #

[View source]
def env_vars=(env_vars : Array(EnvVar)) #

[View source]
def kubernetes_dir #

Where generated Kubernetes manifests for this environment live.


[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def networks : Array(Network) #

[View source]
def networks=(networks : Array(Network)) #

[View source]
def root_dir #

[View source]
def secret_files : Hash(String, String) #

[View source]
def secret_files=(secret_files : Hash(String, String)) #

[View source]
def server : Array(Server) #

[View source]
def server=(server : Array(Server)) #

[View source]
def setup_commands : Array(SetupCommand) #

[View source]
def setup_commands=(setup_commands : Array(SetupCommand)) #

[View source]
def short_name #

First 4 characters of the name, used to namespace swarm configs/secrets.


[View source]
def ssl_certificates : Array(SSLCertificate) #

[View source]
def ssl_certificates=(ssl_certificates : Array(SSLCertificate)) #

[View source]