rockette 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26e8d73d2c9b1c9a543b41dfd95dda73efea46e5bb14d444a5f50ada2af968ce
4
- data.tar.gz: 44b7d193c2ad1ff6dcb9efad3ab7b5a70c87ba8942fb919aec5fa2302c4282b4
3
+ metadata.gz: 45f4e263b11ea088b11682b38ce8a6c8c20ae571e466aa493ec263f8b4031361
4
+ data.tar.gz: d6d0764f28665933b40d254b0f35e69e5c066cc6ac5c4754f60bf84ef4681ebf
5
5
  SHA512:
6
- metadata.gz: 0124ec971be8e538d810582967a512dc26efbaa2ed9e6e9f61fd9f1a954b40b2d3e6625e0b91aa813eac9902350cb3df2ce9f8c1f018edcc9aabdfaa87c73e43
7
- data.tar.gz: aabc39c4210d4ec7dc7ca56cede861c433349fe395088657eba03744c3ced88ca91d7227ddba1488a48d238e87d1d92c05bda232a0d0907a057e7b90d61a193e
6
+ metadata.gz: 21689694006cfe6ddf0393c60eaa2a87fa4b5cf4e1638b86785f31e1ab71f522b9a97f05fafbbbad5113e4587b561233f6866a5fcbfa574d5a69c63062f68e91
7
+ data.tar.gz: c97f3474bead31707a45592dfaa81904c88df431ee60a1e6e0e008c74678f42222f1ff359df3e6f7adb3d482c5f0e2c60388ac7b45d55b8184b1c7cd3c4e32b3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rockette (0.0.5)
4
+ rockette (0.0.6)
5
5
  oci (~> 2.0)
6
6
  pastel (~> 0.0)
7
7
  rest-client (~> 2.0)
@@ -21,58 +21,58 @@ GEM
21
21
  domain_name (0.5.20190701)
22
22
  unf (>= 0.0.5, < 1.0.0)
23
23
  http-accept (1.7.0)
24
- http-cookie (1.0.4)
24
+ http-cookie (1.0.5)
25
25
  domain_name (~> 0.5)
26
26
  inifile (3.0.0)
27
- json (2.5.1)
28
- jwt (2.2.3)
27
+ json (2.6.2)
28
+ jwt (2.3.0)
29
29
  method_source (1.0.0)
30
- mime-types (3.3.1)
30
+ mime-types (3.4.1)
31
31
  mime-types-data (~> 3.2015)
32
- mime-types-data (3.2021.0901)
33
- minitest (5.14.4)
32
+ mime-types-data (3.2022.0105)
33
+ minitest (5.15.0)
34
34
  netrc (0.11.0)
35
- oci (2.15.0)
35
+ oci (2.17.0)
36
36
  inifile (~> 3.0, >= 3.0.0)
37
37
  json (>= 1.4.6, < 3.0.0)
38
38
  jwt (~> 2.1)
39
- parallel (1.21.0)
40
- parser (3.0.2.0)
39
+ parallel (1.22.1)
40
+ parser (3.1.2.0)
41
41
  ast (~> 2.4.1)
42
42
  pastel (0.8.0)
43
43
  tty-color (~> 0.5)
44
44
  pry (0.14.1)
45
45
  coderay (~> 1.1)
46
46
  method_source (~> 1.0)
47
- rainbow (3.0.0)
47
+ rainbow (3.1.1)
48
48
  rake (13.0.6)
49
- regexp_parser (2.1.1)
49
+ regexp_parser (2.5.0)
50
50
  rest-client (2.1.0)
51
51
  http-accept (>= 1.7.0, < 2.0)
52
52
  http-cookie (>= 1.0.2, < 2.0)
53
53
  mime-types (>= 1.16, < 4.0)
54
54
  netrc (~> 0.8)
55
55
  rexml (3.2.5)
56
- rubocop (1.21.0)
56
+ rubocop (1.30.0)
57
57
  parallel (~> 1.10)
58
- parser (>= 3.0.0.0)
58
+ parser (>= 3.1.0.0)
59
59
  rainbow (>= 2.2.2, < 4.0)
60
60
  regexp_parser (>= 1.8, < 3.0)
61
- rexml
62
- rubocop-ast (>= 1.9.1, < 2.0)
61
+ rexml (>= 3.2.5, < 4.0)
62
+ rubocop-ast (>= 1.18.0, < 2.0)
63
63
  ruby-progressbar (~> 1.7)
64
64
  unicode-display_width (>= 1.4.0, < 3.0)
65
- rubocop-ast (1.11.0)
66
- parser (>= 3.0.1.1)
65
+ rubocop-ast (1.18.0)
66
+ parser (>= 3.1.1.0)
67
67
  ruby-progressbar (1.11.0)
68
68
  strings (0.2.1)
69
69
  strings-ansi (~> 0.2)
70
70
  unicode-display_width (>= 1.5, < 3.0)
71
71
  unicode_utils (~> 1.4)
72
72
  strings-ansi (0.2.0)
73
- thor (1.1.0)
73
+ thor (1.2.1)
74
74
  tty-color (0.6.0)
75
- tty-config (0.5.0)
75
+ tty-config (0.5.1)
76
76
  tty-cursor (0.7.1)
77
77
  tty-editor (0.7.0)
78
78
  tty-prompt (~> 0.22)
@@ -93,7 +93,7 @@ GEM
93
93
  tty-screen (~> 0.8)
94
94
  unf (0.1.4)
95
95
  unf_ext
96
- unf_ext (0.0.8)
96
+ unf_ext (0.0.8.2)
97
97
  unicode-display_width (2.1.0)
98
98
  unicode_utils (1.4.0)
99
99
  wisper (2.0.1)
@@ -110,4 +110,4 @@ DEPENDENCIES
110
110
  rubocop (~> 1.7)
111
111
 
112
112
  BUNDLED WITH
113
- 2.2.11
113
+ 2.3.15
@@ -46,6 +46,7 @@ module Rockette
46
46
  puts padder("Let's choose an export to add")
47
47
  file = choose_file
48
48
  env = choose_env
49
+ return if env == -1
49
50
  url = env[0]
50
51
  puts padder("You chose to add #{file} to the environment at #{url}")
51
52
  puts
@@ -61,6 +62,7 @@ module Rockette
61
62
  apps = Rockette::Viewer.new.applications(apps_url, cred)
62
63
  list = list_builder(apps)
63
64
  action = @prompt.slider("Application to update => ", list, default: 1)
65
+ return -1 if action == apps.count + 1
64
66
 
65
67
  apps[action - 1]
66
68
  end
@@ -69,6 +71,7 @@ module Rockette
69
71
  enviros = Rockette::Viewer.new.environments
70
72
  list = list_builder(enviros)
71
73
  action = @prompt.select("Which environment?", list)
74
+ return -1 if action == enviros.count + 1
72
75
  [enviros[action - 1]["deployment_api"], enviros[action - 1]["web_cred"]]
73
76
  end
74
77
 
@@ -92,8 +95,10 @@ module Rockette
92
95
  puts padder("Please choose the export with your updated application code")
93
96
  file = choose_file
94
97
  env = choose_env
98
+ return if env == -1
95
99
  url = env[0]
96
100
  app = choose_app(url, env[1])
101
+ return if app == -1
97
102
  puts "Application: #{app["application_name"]} | App ID: #{app["application_id"]} | Env URI: #{url}"
98
103
  puts "will be updated with the code from export: #{file}"
99
104
  puts
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rockette
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rockette
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kody Wilson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-06 00:00:00.000000000 Z
11
+ date: 2022-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry