neetodeploy 1.1.12 → 1.1.14
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/.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/dyno_console_manager.rb +1 -1
- data/lib/neeto_deploy/cli/exec/base.rb +6 -1
- data/lib/neeto_deploy/cli/session.rb +24 -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: 020db2b6b22c8e45dcac65ed549d4187e30d03942f923d59be882fd7345338be
|
4
|
+
data.tar.gz: e3dcb9d6c5fa358b21bcfdb75a3ad1a7fbe78a336cfb6b2dc78895388785dd88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 317b8f63a814ec162729ef0e474e4ad53a6dbfbee04337366d77309513b42c9c6061d9d709472ece9dd6917c1fb8157fe658eb718ea6278aefe36d01b29352f8
|
7
|
+
data.tar.gz: bb89da2db4a27b82f566aef0e287b315701981076bc7c0ef5ebdaf0b2375b23265b0aace41bb4b6fbd5910af436960b61d1de080bd0e6be79ee1508cb1861c58
|
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.14)
|
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
|
@@ -26,7 +26,7 @@ module NeetoDeploy
|
|
26
26
|
def console_executable_path
|
27
27
|
gem_spec = Gem::Specification.find_by_name("neetodeploy")
|
28
28
|
gem_dir = gem_spec.gem_dir
|
29
|
-
executable_path = File.join(gem_dir, "exe",
|
29
|
+
executable_path = File.join(gem_dir, "exe", console_executable_name)
|
30
30
|
end
|
31
31
|
|
32
32
|
def start_console
|
@@ -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,8 @@ module NeetoDeploy
|
|
11
12
|
class CLI
|
12
13
|
module Exec
|
13
14
|
class Base < CLI::Base
|
15
|
+
|
16
|
+
|
14
17
|
include Constants
|
15
18
|
include Session
|
16
19
|
|
@@ -25,6 +28,7 @@ module NeetoDeploy
|
|
25
28
|
start_spinner
|
26
29
|
send_console_session_request
|
27
30
|
ui.error("\n#{@response.body}") and return unless @response.success?
|
31
|
+
|
28
32
|
start_console
|
29
33
|
connection_cleanup_callback
|
30
34
|
end
|
@@ -34,7 +38,7 @@ module NeetoDeploy
|
|
34
38
|
def console_executable_path
|
35
39
|
gem_spec = Gem::Specification.find_by_name("neetodeploy")
|
36
40
|
gem_dir = gem_spec.gem_dir
|
37
|
-
executable_path = File.join(gem_dir, "exe",
|
41
|
+
executable_path = File.join(gem_dir, "exe", console_executable_name)
|
38
42
|
end
|
39
43
|
|
40
44
|
def start_console
|
@@ -59,6 +63,7 @@ module NeetoDeploy
|
|
59
63
|
@spinner = TTY::Spinner.new("Setting up dyno [:spinner]", format: :classic)
|
60
64
|
@spinner.auto_spin
|
61
65
|
end
|
66
|
+
|
62
67
|
end
|
63
68
|
end
|
64
69
|
end
|
@@ -1,10 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "thor"
|
4
|
+
require "json"
|
4
5
|
|
5
6
|
module NeetoDeploy
|
6
7
|
class CLI
|
7
8
|
module Session
|
9
|
+
CONSOLE_EXECUTABLE = {
|
10
|
+
mac: "console-linux-arm64",
|
11
|
+
linux: "console-linux-amd64"
|
12
|
+
}.freeze
|
13
|
+
|
8
14
|
class Error < StandardError
|
9
15
|
end
|
10
16
|
|
@@ -34,6 +40,24 @@ module NeetoDeploy
|
|
34
40
|
rescue
|
35
41
|
raise Error.new("Unable to retrieve session info. Try logging in again.")
|
36
42
|
end
|
43
|
+
|
44
|
+
def os
|
45
|
+
@os ||= (
|
46
|
+
host_os = RbConfig::CONFIG["host_os"]
|
47
|
+
case host_os
|
48
|
+
when /darwin|mac os/
|
49
|
+
:mac
|
50
|
+
when /linux/
|
51
|
+
:linux
|
52
|
+
else
|
53
|
+
raise Error::WebDriverError, "unsupported os: #{host_os.inspect}"
|
54
|
+
end
|
55
|
+
)
|
56
|
+
end
|
57
|
+
|
58
|
+
def console_executable_name
|
59
|
+
CONSOLE_EXECUTABLE[os]
|
60
|
+
end
|
37
61
|
end
|
38
62
|
end
|
39
63
|
end
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Subin Siby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-10 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
|