Class: SwarmClusterCliOpe::SyncConfigs::Rsync

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

Instance Attribute Summary

Attributes inherited from Base

#configs, #service

Instance Method Summary collapse

Methods inherited from 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)


7
8
9
# File 'lib/swarm_cluster_cli_ope/sync_configs/rsync.rb', line 7

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

#pullSwarmClusterCliOpe::ShellCommandResponse



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

def pull
  execute(direction: :down)
end

#pushSwarmClusterCliOpe::ShellCommandResponse



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

def push
  execute(direction: :up)
end

#remote_folderString

Returns:

  • (String)


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

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