neetodeploy 1.1.11 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +5 -2
- data/exe/console-linux-amd64 +0 -0
- data/lib/neeto_deploy/cli/certificates/commands.rb +19 -0
- data/lib/neeto_deploy/cli/certificates/list.rb +32 -0
- data/lib/neeto_deploy/cli/exec/base.rb +26 -1
- data/lib/neeto_deploy/cli/login/constants.rb +1 -1
- data/lib/neeto_deploy/cli/session.rb +1 -0
- data/lib/neeto_deploy/cli.rb +4 -0
- data/lib/neeto_deploy/version.rb +1 -1
- data/neetodeploy.gemspec +2 -2
- metadata +10 -6
- /data/exe/{console → console-linux-arm64} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f2c80145fe5c0abd4dacfac7feb92d6fa836735a6c5ba2e52a8ab8eaf9384c5
|
4
|
+
data.tar.gz: c9676d69d581f0220c8ed0420bbac4cc7883050e3e2c6392a8aec834febe8872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6df5e9decf6130bf63cf7576ee5fceefd938d4e77917d594d33fe1d863400f02023d100d5720bbc1e607a14af3d22ec3f578305671081801d70e0b0a51274d77
|
7
|
+
data.tar.gz: 8b8b15e9fc5ace97cf20903011c54e91a1cdbfed199473d0733b736ae85c76dce54c92e1a02c4806e01cba86b9270b85be681139c6c1ac98cb2f65c633847a52
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.4
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
neetodeploy (1.1.
|
4
|
+
neetodeploy (1.1.13)
|
5
5
|
colorize
|
6
6
|
dotenv (~> 2.8.1)
|
7
7
|
httparty (~> 0.21.0)
|
@@ -47,7 +47,10 @@ GEM
|
|
47
47
|
PLATFORMS
|
48
48
|
arm64-darwin-20
|
49
49
|
arm64-darwin-21
|
50
|
+
arm64-darwin-23
|
50
51
|
x86_64-darwin-21
|
52
|
+
x86_64-darwin-23
|
53
|
+
x86_64-linux
|
51
54
|
|
52
55
|
DEPENDENCIES
|
53
56
|
byebug
|
@@ -55,4 +58,4 @@ DEPENDENCIES
|
|
55
58
|
websocket-eventmachine-client
|
56
59
|
|
57
60
|
BUNDLED WITH
|
58
|
-
2.
|
61
|
+
2.5.20
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "thor"
|
4
|
+
|
5
|
+
require_relative "./list"
|
6
|
+
|
7
|
+
module NeetoDeploy
|
8
|
+
class CLI
|
9
|
+
module Certificates
|
10
|
+
class Commands < Thor
|
11
|
+
desc "list", "List certificates of an app"
|
12
|
+
option :app, type: :string, aliases: "-a", required: true, desc: "App slug"
|
13
|
+
def list
|
14
|
+
List.new(options:).run
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "thor"
|
4
|
+
|
5
|
+
module NeetoDeploy
|
6
|
+
class CLI
|
7
|
+
module Certificates
|
8
|
+
class List < CLI::Base
|
9
|
+
include Session
|
10
|
+
|
11
|
+
attr_reader :app_slug
|
12
|
+
|
13
|
+
def initialize(options:)
|
14
|
+
super()
|
15
|
+
@app_slug = options[:app]
|
16
|
+
end
|
17
|
+
|
18
|
+
def run
|
19
|
+
response = send_get_request(
|
20
|
+
"#{NEETO_DEPLOY_CLI_API_BASE_URL}/certificates", {
|
21
|
+
app_slug:
|
22
|
+
}
|
23
|
+
)
|
24
|
+
|
25
|
+
ui.error(response) and return unless response.success?
|
26
|
+
|
27
|
+
ui.success(JSON.parse(response.body)["certificates"])
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require "thor"
|
4
4
|
require "readline"
|
5
|
+
require "rbconfig"
|
5
6
|
|
6
7
|
require_relative "../session"
|
7
8
|
require_relative "./constants"
|
@@ -11,6 +12,11 @@ module NeetoDeploy
|
|
11
12
|
class CLI
|
12
13
|
module Exec
|
13
14
|
class Base < CLI::Base
|
15
|
+
CONSOLE_EXECUTABLE = {
|
16
|
+
mac: "console-linux-arm64",
|
17
|
+
linux: "console-linux-amd64"
|
18
|
+
}.freeze
|
19
|
+
|
14
20
|
include Constants
|
15
21
|
include Session
|
16
22
|
|
@@ -25,6 +31,7 @@ module NeetoDeploy
|
|
25
31
|
start_spinner
|
26
32
|
send_console_session_request
|
27
33
|
ui.error("\n#{@response.body}") and return unless @response.success?
|
34
|
+
|
28
35
|
start_console
|
29
36
|
connection_cleanup_callback
|
30
37
|
end
|
@@ -34,7 +41,7 @@ module NeetoDeploy
|
|
34
41
|
def console_executable_path
|
35
42
|
gem_spec = Gem::Specification.find_by_name("neetodeploy")
|
36
43
|
gem_dir = gem_spec.gem_dir
|
37
|
-
executable_path = File.join(gem_dir, "exe",
|
44
|
+
executable_path = File.join(gem_dir, "exe", console_executable_name)
|
38
45
|
end
|
39
46
|
|
40
47
|
def start_console
|
@@ -59,6 +66,24 @@ module NeetoDeploy
|
|
59
66
|
@spinner = TTY::Spinner.new("Setting up dyno [:spinner]", format: :classic)
|
60
67
|
@spinner.auto_spin
|
61
68
|
end
|
69
|
+
|
70
|
+
def os
|
71
|
+
@os ||= (
|
72
|
+
host_os = RbConfig::CONFIG["host_os"]
|
73
|
+
case host_os
|
74
|
+
when /darwin|mac os/
|
75
|
+
:mac
|
76
|
+
when /linux/
|
77
|
+
:linux
|
78
|
+
else
|
79
|
+
raise Error::WebDriverError, "unsupported os: #{host_os.inspect}"
|
80
|
+
end
|
81
|
+
)
|
82
|
+
end
|
83
|
+
|
84
|
+
def console_executable_name
|
85
|
+
CONSOLE_EXECUTABLE[os]
|
86
|
+
end
|
62
87
|
end
|
63
88
|
end
|
64
89
|
end
|
@@ -13,7 +13,7 @@ module NeetoDeploy
|
|
13
13
|
|
14
14
|
def session_login_url(org_subdomain)
|
15
15
|
org_url = NEETO_DEPLOY_HOST.sub("app.", "#{org_subdomain}.")
|
16
|
-
"#{org_url}/cli/login?token=#{login_token}"
|
16
|
+
"#{org_url}/admin/cli/login?token=#{login_token}"
|
17
17
|
end
|
18
18
|
|
19
19
|
def session_login_status_url
|
data/lib/neeto_deploy/cli.rb
CHANGED
@@ -16,6 +16,7 @@ module NeetoDeploy
|
|
16
16
|
require_relative "cli/pg/commands"
|
17
17
|
require_relative "cli/addon/commands"
|
18
18
|
require_relative "cli/autoscaling_config/commands"
|
19
|
+
require_relative "cli/certificates/commands"
|
19
20
|
|
20
21
|
def self.start(*)
|
21
22
|
super
|
@@ -53,5 +54,8 @@ module NeetoDeploy
|
|
53
54
|
|
54
55
|
desc "autoscaling_config", "Manage autoscaling"
|
55
56
|
subcommand "autoscaling_config", AutoscalingConfig::Commands
|
57
|
+
|
58
|
+
desc "certificates", "Manage certificates"
|
59
|
+
subcommand "certificates", Certificates::Commands
|
56
60
|
end
|
57
61
|
end
|
data/lib/neeto_deploy/version.rb
CHANGED
data/neetodeploy.gemspec
CHANGED
@@ -15,8 +15,8 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.required_ruby_version = ">= #{File.read(File.expand_path("./.ruby-version", __dir__)).strip}"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
-
spec.metadata["source_code_uri"] =
|
19
|
-
spec.metadata["changelog_uri"] = "
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
19
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
# The `git ls-files -z` gives the list of files tracked by git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neetodeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Subin Siby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -126,7 +126,8 @@ description: Manage neetoDeploy apps with CLI
|
|
126
126
|
email:
|
127
127
|
- subin.siby@bigbinary.com
|
128
128
|
executables:
|
129
|
-
- console
|
129
|
+
- console-linux-amd64
|
130
|
+
- console-linux-arm64
|
130
131
|
- neetodeploy
|
131
132
|
extensions: []
|
132
133
|
extra_rdoc_files: []
|
@@ -134,7 +135,8 @@ files:
|
|
134
135
|
- ".ruby-version"
|
135
136
|
- Gemfile
|
136
137
|
- Gemfile.lock
|
137
|
-
- exe/console
|
138
|
+
- exe/console-linux-amd64
|
139
|
+
- exe/console-linux-arm64
|
138
140
|
- exe/neetodeploy
|
139
141
|
- lib/neeto_deploy.rb
|
140
142
|
- lib/neeto_deploy/cli.rb
|
@@ -145,6 +147,8 @@ files:
|
|
145
147
|
- lib/neeto_deploy/cli/autoscaling_config/commands.rb
|
146
148
|
- lib/neeto_deploy/cli/autoscaling_config/list.rb
|
147
149
|
- lib/neeto_deploy/cli/base.rb
|
150
|
+
- lib/neeto_deploy/cli/certificates/commands.rb
|
151
|
+
- lib/neeto_deploy/cli/certificates/list.rb
|
148
152
|
- lib/neeto_deploy/cli/dyno_console_manager.rb
|
149
153
|
- lib/neeto_deploy/cli/env/commands.rb
|
150
154
|
- lib/neeto_deploy/cli/env/constants.rb
|
@@ -186,14 +190,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
190
|
requirements:
|
187
191
|
- - ">="
|
188
192
|
- !ruby/object:Gem::Version
|
189
|
-
version: 3.
|
193
|
+
version: 3.2.4
|
190
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
195
|
requirements:
|
192
196
|
- - ">="
|
193
197
|
- !ruby/object:Gem::Version
|
194
198
|
version: '0'
|
195
199
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
200
|
+
rubygems_version: 3.4.19
|
197
201
|
signing_key:
|
198
202
|
specification_version: 4
|
199
203
|
summary: CLI for neetoDeploy
|
File without changes
|