swarm_cluster_cli_ope 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b94cc1986544ce1c00945bf883df5c9e4003509e2a55eabd8dfcb30eece8f9a
4
- data.tar.gz: 2bc401e45d21d81433fa837f8e647e847b395f0f1c725f98685931d25c76ac53
3
+ metadata.gz: e3432781b41fef96d7cda39dd059cc22bc262a95cff0a47edbe54909d701ec12
4
+ data.tar.gz: 0ad0f4bd61199c0a5a1ca20170dd7f6fda842f2af388d524cf4164e70d556c62
5
5
  SHA512:
6
- metadata.gz: df6e5910223f8aaf1b8dac1d7d8ef253e5f87e3fa51fb0240efb9c6f50ab9f586373ad2fc569bb3306603b8ca680bf7543557cf33bba08d5193566f0ba9f2479
7
- data.tar.gz: dd52d60b709b2b5f196f80825f6857940c35cfe76bde1bc964d45b77df876cd683a94261fa34ce83bdd3dc2949af28ca25903e80bedfed367979592c10395955
6
+ metadata.gz: 5508cc76131420a0cd71acda090a704488aebb7fb95fa2daa183abd4680c1ab07b5c2707ff652e8bbd9da408b3c607e931e557c40c31d8116f158d58352254f6
7
+ data.tar.gz: 0a01d1c318c2f3473822017036484c19dd11d36453ac6685b37939586fbc70ee0530f63542e9570e012f3eb422b1bd19e855863f4e44e3c4709bed4ac4d7d608
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swarm_cluster_cli_ope (0.1.4)
4
+ swarm_cluster_cli_ope (0.1.5)
5
5
  activesupport
6
6
  open4
7
7
  thor (~> 1.0)
@@ -10,12 +10,12 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (6.0.2.2)
13
+ activesupport (6.0.3)
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
15
  i18n (>= 0.7, < 2)
16
16
  minitest (~> 5.1)
17
17
  tzinfo (~> 1.1)
18
- zeitwerk (~> 2.2)
18
+ zeitwerk (~> 2.2, >= 2.2.2)
19
19
  concurrent-ruby (1.1.6)
20
20
  i18n (1.8.2)
21
21
  concurrent-ruby (~> 1.0)
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  Una volta installato lanciare il comando
24
24
 
25
- ```swarm_cluster_cli_ope install``` che si occuperà di configurare le varie impostazioni dell'ambiente
25
+ ```swarm_cli_ope install``` che si occuperà di configurare le varie impostazioni dell'ambiente
26
26
 
27
27
  FILE di configurazione base:
28
28
  ```json
@@ -38,7 +38,7 @@ FILE di configurazione base:
38
38
 
39
39
  ### Configuratione di un progetto
40
40
  Si occupa di generare nel progetto il file di configurazione in cui impostare impostazioni specifiche di progetto
41
- quali stack_name
41
+ quali stack_name (.swarm_cluster_project)
42
42
  ```shell script
43
43
  swarm_cli_ope configure_project STACK_NAME
44
44
  ```
@@ -82,10 +82,6 @@ swarm_cli_ope services --stack-name=NOME_STACK
82
82
  ```shell script
83
83
  swarm_cli_ope cp --stack-name=NOME_STACK PATH_FILE_LOCALE NOME_SERVIZIO:DESTINAZIONE_NEL_CONTAINER
84
84
  ```
85
- ES:
86
- ```shell script
87
- swarm_cli_ope cp --stack-name=webapps-examinerapp-staging ./test_folder/test_1/cartella_bindata/test jeapp:/tmp/.
88
- ```
89
85
 
90
86
  ### Rsync da/a container a/da locale
91
87
 
@@ -96,12 +92,6 @@ Utilizzare `rsync_binded_from` per scaricare e `rsync_binded_to` per caricare
96
92
  swarm_cli_ope rsync_binded_from --stack-name=STACK_NAME --service_name NOME_SERVIZIO_SENZA_STACK --binded-container-folders CARTELLA_CONTAINER --local-folder CARTELLA_DESTINAZIONE
97
93
  ```
98
94
 
99
- ES:
100
- ```shell script
101
- swarm_cli_ope rsync_binded_from --stack-name=web-site-ranchilbosco-production --service_name wordpress --binded-container-folders /var/www/html/wp-content/uploads --destination ./uploads
102
- ```
103
-
104
-
105
95
  ## Development
106
96
 
107
97
  nel file di configurazione creato nella home aggiungere la chiave "dev_mode":1 per collegarsi localmente
@@ -37,7 +37,7 @@ module SwarmClusterCliOpe
37
37
 
38
38
  end
39
39
 
40
- desc "config", "Visualizza le configurazioni mergiate (HOME + Project)"
40
+ desc "config", "Visualizza le configurazioni mergiate (HOME + Project configuration[#{Configuration.cfgs_project_file_name}])"
41
41
 
42
42
  def config
43
43
  puts JSON.pretty_generate(cfgs.class.merged_configurations)
@@ -50,8 +50,7 @@ module SwarmClusterCliOpe
50
50
  # @return [OpenStruct]
51
51
  def info
52
52
  # path al file di cache
53
- # TODO sarebbe da aggiornare ogni tanto, metti che uno non spegne mai il pc
54
- path = "/tmp/.swarm_cluster_cli_info_cache_#{name}"
53
+ path = Time.now.strftime("/tmp/.swarm_cluster_cli_info_cache_#{name}-%Y%m%d%H")
55
54
  if File.exist?(path)
56
55
  i = JSON.parse(File.read(path), object_class: OpenStruct)
57
56
  else
@@ -1,3 +1,3 @@
1
1
  module SwarmClusterCliOpe
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  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.1.4
4
+ version: 0.1.5
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-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor