class Candilano::Ssh

Defined in:

lib/helpers/ssh.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : YAML::Any, servers : YAML::Any) #

[View source]

Instance Method Detail

def build_command(host) #

[View source]
def execute(command : String, user_env = true, dry_run = false, on_role = nil) #

[View source]
def file_exists?(path) #

[View source]
def key : String #

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

[View source]
def port : Int32 #

[View source]
def port=(port : Int32) #

[View source]
def prepare_command(command, user_env) #

[View source]
def run_command(host, command, user_env, dry_run = false) #

[View source]
def scp(local_file : String, remote_file : String) #

TODO SCP files from local to remote


[View source]
def servers : YAML::Any #

[View source]
def servers=(servers : YAML::Any) #

[View source]
def user : String #

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

[View source]