neetob 0.5.11 → 0.5.13

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: bbc06c85f927fdeae34ab2c8ac746ddcb0fc55755d64cabc82d6eec71774d019
4
- data.tar.gz: dc4bc815924f950f982e7b0076fbf2692ff3f292cb7e0f1c95041ff3c50fd863
3
+ metadata.gz: 4ece2e273c87d505a4847def37fdde461c3128f4a62f4a5b700de4731e264ddd
4
+ data.tar.gz: a18bceaca59015a0d051cb03e8bde205d35a76c6d50ad2b1555b574f7a6e9aa2
5
5
  SHA512:
6
- metadata.gz: f55644c3ef1bcfded6e86dd9f0758cc3f8ea83605507ea05826e433a620a55700d24000c9c0d4c0a04e318b6aa9c7a94200f78adce9d6141a49b2c84c5ca2d41
7
- data.tar.gz: 6dd680f72164d0af11d4b11103c02e293124944c16f81ba2df07475a7f193c8b048fb4ee84bc809bb9ff7f256353ac912950b881af4a2fe3112bd36d9b15bb77
6
+ metadata.gz: ad56720947b4df853b92437d62cd3d3ecfc59bed705e59bda46af3ba66ae21f98cd68dc5249ceee086ccbd8d19a0d29c350e224b27f44b53487fe2cdf4cb0488
7
+ data.tar.gz: 6902abc809e2a0b4efbd7cd2b8812c3d3eed1628f331fc133aa33dff68032f8b5ccfef180595fdd54bedea2c6e05b6f3445909e55e6c019366c4e2385d43ae90
data/.env CHANGED
@@ -1 +1 @@
1
- AUTH_PARAMS='{"provider": "github","client_id": "Iv23lijkorVWxj43SaI6","grant_type": "urn:ietf:params:oauth:grant-type:device_code","auth_uris": {"auth_req": "https://github.com/login/device/code","token_req": "https://github.com/login/oauth/access_token"},"scope": "repo,user"}'
1
+ AUTH_PARAMS='{"provider": "github","client_id": "9aefff37f98713262fd0","grant_type": "urn:ietf:params:oauth:grant-type:device_code","auth_uris": {"auth_req": "https://github.com/login/device/code","token_req": "https://github.com/login/oauth/access_token"},"scope": "repo,user"}'
data/.neetoci/default.yml CHANGED
@@ -5,7 +5,7 @@ plan: standard-2
5
5
  global_job_config:
6
6
  setup:
7
7
  - checkout
8
- - neetoci-version ruby 3.2.2
8
+ - neetoci-version ruby 3.2.4
9
9
  - bundle config path 'vendor/bundle'
10
10
  - cache restore
11
11
  - bundle install --jobs 1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.2
1
+ 3.2.4
@@ -9,7 +9,7 @@ global_job_config:
9
9
  prologue:
10
10
  commands:
11
11
  - checkout
12
- - sem-version ruby 3.2.2
12
+ - sem-version ruby 3.2.4
13
13
  - bundle config path 'vendor/bundle'
14
14
  - bundle install
15
15
  env_vars:
data/Gemfile CHANGED
@@ -12,7 +12,6 @@ group :development do
12
12
  gem "overcommit", "~> 0.59.1"
13
13
  gem "pry"
14
14
  gem "rake", "~> 13.0"
15
- gem "rubocop", "~> 1.28"
16
15
  gem "terminal-table", "~> 3.0.2"
17
16
  end
18
17
 
@@ -21,15 +20,17 @@ group :test do
21
20
  gem "minitest", "~> 5.0"
22
21
  gem "minitest-reporters"
23
22
  gem "mocha"
24
- gem "rubocop", "~> 1.28"
25
23
  gem "simplecov"
26
24
  gem "webmock"
27
25
  end
28
26
 
29
- gem "byebug"
27
+ group :development, :test do
28
+ gem "rubocop", "~> 1.28"
29
+ end
30
30
  gem "chronic"
31
31
  gem "fury"
32
32
  gem "neetodeploy"
33
+ gem "pry"
33
34
 
34
35
  source "https://O6Ts9-SVDaUZpHMRs2CpJp22RwbETDE@gems.neeto.com" do
35
36
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.5.11)
4
+ neetob (0.5.13)
5
5
  brakeman (~> 5.0)
6
6
  chronic
7
7
  dotenv (~> 2.8.1)
@@ -137,7 +137,6 @@ GEM
137
137
  bullet (7.2.0)
138
138
  activesupport (>= 3.0.0)
139
139
  uniform_notifier (~> 1.11)
140
- byebug (11.1.3)
141
140
  childprocess (4.1.0)
142
141
  chronic (0.10.2)
143
142
  coderay (1.1.3)
@@ -163,7 +162,7 @@ GEM
163
162
  erubi (1.13.0)
164
163
  et-orbi (1.2.11)
165
164
  tzinfo
166
- event_emitter (0.2.6)
165
+ eventmachine (1.2.7)
167
166
  faraday (2.12.0)
168
167
  faraday-net_http (>= 2.0, < 3.4)
169
168
  json
@@ -230,7 +229,7 @@ GEM
230
229
  bigdecimal (~> 3.1)
231
230
  multipart-post (2.4.1)
232
231
  mutex_m (0.2.0)
233
- neetodeploy (1.1.6)
232
+ neetodeploy (1.1.13)
234
233
  colorize
235
234
  dotenv (~> 2.8.1)
236
235
  httparty (~> 0.21.0)
@@ -238,7 +237,7 @@ GEM
238
237
  terminal-table (~> 3.0.2)
239
238
  thor (~> 1.3.0)
240
239
  tty-spinner
241
- websocket-client-simple
240
+ websocket-eventmachine-client
242
241
  net-http (0.4.1)
243
242
  uri
244
243
  net-imap (0.4.17)
@@ -455,12 +454,16 @@ GEM
455
454
  hashdiff (>= 0.4.0, < 2.0.0)
456
455
  webrick (1.8.2)
457
456
  websocket (1.2.11)
458
- websocket-client-simple (0.8.0)
459
- event_emitter
460
- websocket
461
457
  websocket-driver (0.7.6)
462
458
  websocket-extensions (>= 0.1.0)
459
+ websocket-eventmachine-base (1.2.0)
460
+ eventmachine (~> 1.0)
461
+ websocket (~> 1.0)
462
+ websocket-native (~> 1.0)
463
+ websocket-eventmachine-client (1.3.0)
464
+ websocket-eventmachine-base (~> 1.0)
463
465
  websocket-extensions (0.1.5)
466
+ websocket-native (1.0.0)
464
467
  zeitwerk (2.6.18)
465
468
 
466
469
  PLATFORMS
@@ -470,7 +473,6 @@ PLATFORMS
470
473
  x86_64-linux
471
474
 
472
475
  DEPENDENCIES
473
- byebug
474
476
  chronic
475
477
  dotenv (~> 2.8.1)
476
478
  faraday-retry
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "../base"
4
- require "byebug"
4
+
5
5
  module Neetob
6
6
  class CLI
7
7
  module Cloudflare
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "json"
4
+
5
+ module Neetob
6
+ class CLI
7
+ module NeetoDeploy
8
+ class Certificates < CLI::Base
9
+ attr_accessor :app
10
+
11
+ def initialize(app)
12
+ super()
13
+ @app = app
14
+ end
15
+
16
+ def run
17
+ certificates_command_result = `neetodeploy certificates list -a #{app}`
18
+ parseable_result = certificates_command_result.strip.gsub("=>", ":")
19
+
20
+ parsed_certificates_result = JSON.parse(parseable_result)
21
+ if parsed_certificates_result.empty?
22
+ ui.error("No certificates found for the app with name \"#{app}\".")
23
+ else
24
+ parsed_certificates_result.each do |certificate|
25
+ if certificate["expires_before_30_days"]
26
+ ui.error("Certificate #{certificate["name"]} is expiring in less than 30 days.")
27
+ else
28
+ ui.success("Certificate #{certificate["name"]} is valid for over 30 days in the future.")
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -4,6 +4,7 @@ require "thor"
4
4
  require_relative "config_vars/commands"
5
5
  require_relative "./autoscaling_config"
6
6
  require_relative "./scheduled_exports"
7
+ require_relative "./certificates"
7
8
 
8
9
  module Neetob
9
10
  class CLI
@@ -23,6 +24,12 @@ module Neetob
23
24
  def scheduled_exports
24
25
  ScheduledExports.new(options[:app]).run
25
26
  end
27
+
28
+ desc "certificates", "Get the certificates for an app deployed on NeetoDeploy"
29
+ option :app, type: :string, aliases: :a, desc: "App name"
30
+ def certificates
31
+ Certificates.new(options[:app]).run
32
+ end
26
33
  end
27
34
  end
28
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.5.11"
4
+ VERSION = "0.5.13"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neetob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.11
4
+ version: 0.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Udai Gupta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -225,6 +225,7 @@ files:
225
225
  - lib/neetob/cli/local/commands.rb
226
226
  - lib/neetob/cli/local/ls.rb
227
227
  - lib/neetob/cli/neeto_deploy/autoscaling_config.rb
228
+ - lib/neetob/cli/neeto_deploy/certificates.rb
228
229
  - lib/neetob/cli/neeto_deploy/commands.rb
229
230
  - lib/neetob/cli/neeto_deploy/config_vars/base.rb
230
231
  - lib/neetob/cli/neeto_deploy/config_vars/commands.rb
@@ -270,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
271
  - !ruby/object:Gem::Version
271
272
  version: '0'
272
273
  requirements: []
273
- rubygems_version: 3.4.10
274
+ rubygems_version: 3.4.19
274
275
  signing_key:
275
276
  specification_version: 4
276
277
  summary: Provides a set of helper scripts for Github and Heroku.