Class: SwarmClusterCliOpe::SyncConfigs::Rsync
- Inherits:
-
Base
- Object
- Thor::Shell::Basic
- Base
- SwarmClusterCliOpe::SyncConfigs::Rsync
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
#logger
Instance Method Details
#local_folder ⇒ String
7
8
9
|
# File 'lib/swarm_cluster_cli_ope/sync_configs/rsync.rb', line 7
def local_folder
@configs[:configs][:local]
end
|
23
24
25
|
# File 'lib/swarm_cluster_cli_ope/sync_configs/rsync.rb', line 23
def pull
execute(direction: :down)
end
|
18
19
20
|
# File 'lib/swarm_cluster_cli_ope/sync_configs/rsync.rb', line 18
def push
execute(direction: :up)
end
|
#remote_folder ⇒ String
12
13
14
|
# File 'lib/swarm_cluster_cli_ope/sync_configs/rsync.rb', line 12
def remote_folder
@configs[:configs][:remote]
end
|