class DeployCR::Operation

Included Modules

Direct Known Subclasses

Defined in:

deploy-cr/operation.cr

Constant Summary

CLASS_CONFIG = {} of Nil => Nil

The following hash CLASS_CONFIG saves all information about the steps and given options. So its the "operation class config". This variable is available during AST node parsing. Thanks to inherited hook it is @type.id class related and not super class.

Class Method Summary

Instance Method Summary

Instance methods inherited from module DeployCR

app_name_by_path app_name_by_path, app_path app_path, tmp_path tmp_path

Class methods inherited from module DeployCR

stderr stderr, stdout stdout

Class Method Detail

def self.configure(&) #

[View source]
def self.run(*args, **options) #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


Instance Method Detail

def failure?(step_name : Symbol, step_type : Symbol | Nil = nil) #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def failure? #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def host : String #

def host=(host : String) #

[View source]
def host? : String | Nil #

def log : Hathor::OperationLogger #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def log=(log) #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def run #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def run(*args, **options) #

[View source]
def run_process(cmd, args = nil, output = DeployCR.stdout, chdir = File.join(app_path, tmppath), shell = false) #

DEPRECATED Use #run instead


[View source]
def ssh(*args, **options) #

[View source]
def status : Bool #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def status=(status) #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def success?(step_name : Symbol, step_type : Symbol | Nil = nil) #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def success? : Bool #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def tmppath : String #

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

[View source]
def update_operation_state(new_status : Bool, step : Symbol, step_type : Symbol, log_reason = "updated without submitting reason", force : Bool = false) #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def update_operation_state(new_status : Bool, log_reason = "updated without submitting reason", force = false) #

Finished hook is the last thing of AST node parsing. By putting it inside inherited macro, we ensure that it will be run after simple macros are over and only for the @type.id class. So this is THE REALLY LAST THING OF AST.


def user : String #

def user=(user : String) #

[View source]
def user? : String | Nil #