neetodeploy 1.1.13 → 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/Gemfile.lock +1 -1
- data/lib/neeto_deploy/cli/dyno_console_manager.rb +1 -1
- data/lib/neeto_deploy/cli/exec/base.rb +1 -21
- data/lib/neeto_deploy/cli/session.rb +23 -0
- data/lib/neeto_deploy/version.rb +1 -1
- metadata +2 -2
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/Gemfile.lock
CHANGED
@@ -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
|
@@ -12,10 +12,7 @@ module NeetoDeploy
|
|
12
12
|
class CLI
|
13
13
|
module Exec
|
14
14
|
class Base < CLI::Base
|
15
|
-
|
16
|
-
mac: "console-linux-arm64",
|
17
|
-
linux: "console-linux-amd64"
|
18
|
-
}.freeze
|
15
|
+
|
19
16
|
|
20
17
|
include Constants
|
21
18
|
include Session
|
@@ -67,23 +64,6 @@ module NeetoDeploy
|
|
67
64
|
@spinner.auto_spin
|
68
65
|
end
|
69
66
|
|
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
|
87
67
|
end
|
88
68
|
end
|
89
69
|
end
|
@@ -6,6 +6,11 @@ require "json"
|
|
6
6
|
module NeetoDeploy
|
7
7
|
class CLI
|
8
8
|
module Session
|
9
|
+
CONSOLE_EXECUTABLE = {
|
10
|
+
mac: "console-linux-arm64",
|
11
|
+
linux: "console-linux-amd64"
|
12
|
+
}.freeze
|
13
|
+
|
9
14
|
class Error < StandardError
|
10
15
|
end
|
11
16
|
|
@@ -35,6 +40,24 @@ module NeetoDeploy
|
|
35
40
|
rescue
|
36
41
|
raise Error.new("Unable to retrieve session info. Try logging in again.")
|
37
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
|
38
61
|
end
|
39
62
|
end
|
40
63
|
end
|
data/lib/neeto_deploy/version.rb
CHANGED
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
|