Class: SwarmClusterCliOpe::Kubernetes::SyncConfigs::Rsync

Inherits:
SyncConfigs::Base
  • Object
show all
Includes:
BaseDecorator
Defined in:
lib/swarm_cluster_cli_ope/kubernetes/sync_configs/rsync.rb

Instance Attribute Summary

Attributes inherited from SyncConfigs::Base

#configs, #service

Instance Method Summary collapse

Methods inherited from SyncConfigs::Base

#initialize

Methods included from LoggerConcern

#logger

Constructor Details

This class inherits a constructor from SwarmClusterCliOpe::SyncConfigs::Base

Instance Method Details

#local_folderString

Returns:

  • (String)


12
13
14
# File 'lib/swarm_cluster_cli_ope/kubernetes/sync_configs/rsync.rb', line 12

def local_folder
  @configs[:configs][:local]
end

#pullSwarmClusterCliOpe::ShellCommandResponse



27
28
29
# File 'lib/swarm_cluster_cli_ope/kubernetes/sync_configs/rsync.rb', line 27

def pull
  execute(direction: :down)
end

#pushSwarmClusterCliOpe::ShellCommandResponse



22
23
24
# File 'lib/swarm_cluster_cli_ope/kubernetes/sync_configs/rsync.rb', line 22

def push
  execute(direction: :up)
end

#remote_folderString

Returns:

  • (String)


17
18
19
# File 'lib/swarm_cluster_cli_ope/kubernetes/sync_configs/rsync.rb', line 17

def remote_folder
  @configs[:configs][:remote]
end