swarm_cluster_cli_ope 0.5.0.pre.2 → 0.5.0.pre.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module SwarmClusterCliOpe
9
9
  attr_accessor :configs
10
10
 
11
11
  # @param [Hash] configs
12
- # @param [Continuation] stack_cfgs
12
+ # @param [Configuration] stack_cfgs
13
13
  def initialize(stack_cfgs, configs)
14
14
  super()
15
15
  @configs = configs
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SwarmClusterCliOpe
2
- VERSION = "0.5.0.pre.2"
2
+ VERSION = "0.5.0.pre.3"
3
3
  end
@@ -33,5 +33,4 @@ Gem::Specification.new do |spec|
33
33
  spec.add_dependency "zeitwerk", '~>2.3'
34
34
  spec.add_dependency "open4"
35
35
  spec.add_dependency "activesupport"
36
- spec.add_dependency "kubeclient", '~>4.9'
37
36
  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.2
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-09 00:00:00.000000000 Z
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/k8s_rsync/password
116
- - lib/swarm_cluster_cli_ope/k8s_rsync/rsyncd.conf
117
- - lib/swarm_cluster_cli_ope/k8s_rsync/rsyncd.secrets
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