swarm_cluster_cli_ope 0.5.0.pre.2 → 0.5.0.pre.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -45
- data/README.md +7 -2
- data/lib/swarm_cluster_cli_ope/base_configuration.rb +211 -0
- data/lib/swarm_cluster_cli_ope/cli.rb +2 -129
- data/lib/swarm_cluster_cli_ope/configuration.rb +3 -182
- data/lib/swarm_cluster_cli_ope/configuration_concern.rb +10 -9
- data/lib/swarm_cluster_cli_ope/k8s.rb +59 -83
- data/lib/swarm_cluster_cli_ope/kubernetes/configuration.rb +49 -0
- data/lib/swarm_cluster_cli_ope/kubernetes/pod.rb +143 -0
- data/lib/swarm_cluster_cli_ope/{k8s_rsync → kubernetes/rsync_cfgs}/password +0 -0
- data/lib/swarm_cluster_cli_ope/{k8s_rsync → kubernetes/rsync_cfgs}/rsyncd.conf +0 -0
- data/lib/swarm_cluster_cli_ope/{k8s_rsync → kubernetes/rsync_cfgs}/rsyncd.secrets +0 -0
- data/lib/swarm_cluster_cli_ope/kubernetes/sync_configs/base_decorator.rb +28 -0
- data/lib/swarm_cluster_cli_ope/kubernetes/sync_configs/rsync.rb +119 -0
- data/lib/swarm_cluster_cli_ope/kubernetes/sync_configs/sqlite3.rb +9 -0
- data/lib/swarm_cluster_cli_ope/shell_command_response.rb +8 -1
- data/lib/swarm_cluster_cli_ope/stack_sync_concern.rb +128 -0
- data/lib/swarm_cluster_cli_ope/sync_configs/base.rb +1 -1
- data/lib/swarm_cluster_cli_ope/thor_configuration_concern.rb +29 -0
- data/lib/swarm_cluster_cli_ope/version.rb +1 -1
- data/swarm_cluster_cli_ope.gemspec +0 -1
- metadata +13 -19
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'active_support/concern'
|
2
|
+
|
3
|
+
module SwarmClusterCliOpe
|
4
|
+
module ThorConfigurationConcern
|
5
|
+
extend ActiveSupport::Concern
|
6
|
+
|
7
|
+
included do
|
8
|
+
|
9
|
+
desc "config", "Visualizza le configurazioni mergiate (HOME + Project configuration[#{Configuration.cfgs_project_file_name}])"
|
10
|
+
|
11
|
+
def config
|
12
|
+
cfgs.env(options[:environment]) do
|
13
|
+
puts JSON.pretty_generate(cfgs.merged_configurations)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "configure_project STACK_NAME", "Genera il file di configurazione del progetto contenente il nome dello stack"
|
18
|
+
|
19
|
+
def configure_project(stack_name)
|
20
|
+
cfgs.env(options[:environment]) do |c|
|
21
|
+
c.stack_name = stack_name
|
22
|
+
c.save_project_cfgs
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swarm_cluster_cli_ope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0.pre.
|
4
|
+
version: 0.5.0.pre.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marino Bonetti
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: kubeclient
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '4.9'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '4.9'
|
83
69
|
description: |-
|
84
70
|
Gestione di varie operazioni come sincronia con le cartelle bindate dei container (rsync) up o
|
85
71
|
down e possibilità di scaricare/caricare i file direttamente all'interno del cluster, in
|
@@ -102,6 +88,7 @@ files:
|
|
102
88
|
- Rakefile
|
103
89
|
- exe/swarm_cli_ope
|
104
90
|
- lib/swarm_cluster_cli_ope.rb
|
91
|
+
- lib/swarm_cluster_cli_ope/base_configuration.rb
|
105
92
|
- lib/swarm_cluster_cli_ope/cli.rb
|
106
93
|
- lib/swarm_cluster_cli_ope/commands/base.rb
|
107
94
|
- lib/swarm_cluster_cli_ope/commands/compose_container.rb
|
@@ -112,9 +99,14 @@ files:
|
|
112
99
|
- lib/swarm_cluster_cli_ope/configuration.rb
|
113
100
|
- lib/swarm_cluster_cli_ope/configuration_concern.rb
|
114
101
|
- lib/swarm_cluster_cli_ope/k8s.rb
|
115
|
-
- lib/swarm_cluster_cli_ope/
|
116
|
-
- lib/swarm_cluster_cli_ope/
|
117
|
-
- lib/swarm_cluster_cli_ope/
|
102
|
+
- lib/swarm_cluster_cli_ope/kubernetes/configuration.rb
|
103
|
+
- lib/swarm_cluster_cli_ope/kubernetes/pod.rb
|
104
|
+
- lib/swarm_cluster_cli_ope/kubernetes/rsync_cfgs/password
|
105
|
+
- lib/swarm_cluster_cli_ope/kubernetes/rsync_cfgs/rsyncd.conf
|
106
|
+
- lib/swarm_cluster_cli_ope/kubernetes/rsync_cfgs/rsyncd.secrets
|
107
|
+
- lib/swarm_cluster_cli_ope/kubernetes/sync_configs/base_decorator.rb
|
108
|
+
- lib/swarm_cluster_cli_ope/kubernetes/sync_configs/rsync.rb
|
109
|
+
- lib/swarm_cluster_cli_ope/kubernetes/sync_configs/sqlite3.rb
|
118
110
|
- lib/swarm_cluster_cli_ope/logger_concern.rb
|
119
111
|
- lib/swarm_cluster_cli_ope/manager.rb
|
120
112
|
- lib/swarm_cluster_cli_ope/models/base.rb
|
@@ -127,6 +119,7 @@ files:
|
|
127
119
|
- lib/swarm_cluster_cli_ope/node.rb
|
128
120
|
- lib/swarm_cluster_cli_ope/shell_command_execution.rb
|
129
121
|
- lib/swarm_cluster_cli_ope/shell_command_response.rb
|
122
|
+
- lib/swarm_cluster_cli_ope/stack_sync_concern.rb
|
130
123
|
- lib/swarm_cluster_cli_ope/sync_configs/base.rb
|
131
124
|
- lib/swarm_cluster_cli_ope/sync_configs/base_database.rb
|
132
125
|
- lib/swarm_cluster_cli_ope/sync_configs/copy.rb
|
@@ -135,6 +128,7 @@ files:
|
|
135
128
|
- lib/swarm_cluster_cli_ope/sync_configs/post_gres.rb
|
136
129
|
- lib/swarm_cluster_cli_ope/sync_configs/rsync.rb
|
137
130
|
- lib/swarm_cluster_cli_ope/sync_configs/sqlite3.rb
|
131
|
+
- lib/swarm_cluster_cli_ope/thor_configuration_concern.rb
|
138
132
|
- lib/swarm_cluster_cli_ope/version.rb
|
139
133
|
- lib/swarm_cluster_cli_ope/worker.rb
|
140
134
|
- swarm_cluster_cli_ope.gemspec
|