class Swm::Stack

Defined in:

docker/stack.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, cluster : Cluster, yml : String = "#{name}.yml") #

[View source]

Instance Method Detail

def deploy(replicas = 1, env : Process::Env = {} of String => String) #

[View source]
def deployed? : Bool #

[View source]
def exists? #

[View source]
def follow(service_name : String) #

[View source]
def name : String #

[View source]
def original_stack_name #

name of the non-script stack


[View source]
def postdeploy(command : String, env : Process::Env = {} of String => String) #

[View source]
def predeploy(command : String, env : Process::Env = {} of String => String) #

[View source]
def remove! #

[View source]
def script_stack #

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def wait_for_deploy #

[View source]
def yml : String #

[View source]