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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f2c80145fe5c0abd4dacfac7feb92d6fa836735a6c5ba2e52a8ab8eaf9384c5
4
- data.tar.gz: c9676d69d581f0220c8ed0420bbac4cc7883050e3e2c6392a8aec834febe8872
3
+ metadata.gz: 020db2b6b22c8e45dcac65ed549d4187e30d03942f923d59be882fd7345338be
4
+ data.tar.gz: e3dcb9d6c5fa358b21bcfdb75a3ad1a7fbe78a336cfb6b2dc78895388785dd88
5
5
  SHA512:
6
- metadata.gz: 6df5e9decf6130bf63cf7576ee5fceefd938d4e77917d594d33fe1d863400f02023d100d5720bbc1e607a14af3d22ec3f578305671081801d70e0b0a51274d77
7
- data.tar.gz: 8b8b15e9fc5ace97cf20903011c54e91a1cdbfed199473d0733b736ae85c76dce54c92e1a02c4806e01cba86b9270b85be681139c6c1ac98cb2f65c633847a52
6
+ metadata.gz: 317b8f63a814ec162729ef0e474e4ad53a6dbfbee04337366d77309513b42c9c6061d9d709472ece9dd6917c1fb8157fe658eb718ea6278aefe36d01b29352f8
7
+ data.tar.gz: bb89da2db4a27b82f566aef0e287b315701981076bc7c0ef5ebdaf0b2375b23265b0aace41bb4b6fbd5910af436960b61d1de080bd0e6be79ee1508cb1861c58
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetodeploy (1.1.13)
4
+ neetodeploy (1.1.14)
5
5
  colorize
6
6
  dotenv (~> 2.8.1)
7
7
  httparty (~> 0.21.0)
@@ -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", "console")
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
- CONSOLE_EXECUTABLE = {
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeetoDeploy
4
- VERSION = "1.1.13"
4
+ VERSION = "1.1.14"
5
5
  CLI_API_VERSION = "v1"
6
6
  end
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.13
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: 2024-10-29 00:00:00.000000000 Z
11
+ date: 2025-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv