obs_deploy 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/obs_deploy/cli/commands/get_deployed_version.rb +7 -1
- data/lib/obs_deploy/cli/commands/get_diff.rb +7 -1
- data/lib/obs_deploy/cli/commands/get_package_version.rb +7 -1
- data/lib/obs_deploy/cli/commands/get_pending_migration.rb +7 -1
- data/lib/obs_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: 7a525028509dae49e8de2a70652610f8dbbc5e81f2006022bb5691113f76d9aa
|
4
|
+
data.tar.gz: 6c45a8f8a0e8a2957c8ff59d1b696e670d8299e2c01cfdd5567a80d4d0d14148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fab4b9747706c4d5e2b44581a60c0f3ef21fe5e02b4f415959e4c907e0f46c0c0211d64b53d266107d0e33b05852ec8886462b587505908ebccf29eadd797b2
|
7
|
+
data.tar.gz: 61f0eca04c6465ba339bfde0b9cf8d4a846db4c236501bacd817b8b99fa0931aca1c833bd1d03b339fade9fae56c9825f6c7dd0db691523e7d88d1e77b4e937f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
obs_deploy (0.3.
|
4
|
+
obs_deploy (0.3.5)
|
5
5
|
cheetah
|
6
6
|
dry-cli
|
7
7
|
nokogiri
|
@@ -26,7 +26,7 @@ GEM
|
|
26
26
|
jaro_winkler (1.5.4)
|
27
27
|
method_source (1.0.0)
|
28
28
|
mini_portile2 (2.5.0)
|
29
|
-
nokogiri (1.11.
|
29
|
+
nokogiri (1.11.1)
|
30
30
|
mini_portile2 (~> 2.5.0)
|
31
31
|
racc (~> 1.4)
|
32
32
|
parallel (1.19.1)
|
@@ -6,8 +6,14 @@ module ObsDeploy
|
|
6
6
|
class GetDeployedVersion < Dry::CLI::Command
|
7
7
|
desc 'Get the deployed version of OBS'
|
8
8
|
option :url, type: :string, default: 'https://api.opensuse.org', desc: 'API url'
|
9
|
+
option :ignore_certificate, aliases: ['k'], type: :bool, default: false, desc: 'Ignore invalid or self-signed SSL certificates'
|
9
10
|
|
10
|
-
def call(url:, **)
|
11
|
+
def call(url:, ignore_certificate:, **)
|
12
|
+
if ignore_certificate
|
13
|
+
OpenSSL::SSL.send(:remove_const, :VERIFY_PEER)
|
14
|
+
OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE)
|
15
|
+
end
|
16
|
+
|
11
17
|
puts "Deployed version: #{ObsDeploy::CheckDiff.new(server: url).obs_running_commit}"
|
12
18
|
end
|
13
19
|
end
|
@@ -10,10 +10,16 @@ module ObsDeploy
|
|
10
10
|
option :project, type: :string, default: 'OBS:Server:Unstable', desc: 'Project name'
|
11
11
|
option :product, type: :string, default: 'SLE_12_SP4', desc: 'Product name'
|
12
12
|
option :architecture, type: :string, default: 'x86_64', desc: 'Architecture'
|
13
|
+
option :ignore_certificate, aliases: ['k'], type: :bool, default: false, desc: 'Ignore invalid or self-signed SSL certificates'
|
13
14
|
|
14
|
-
def call(url:, product:, project:, **)
|
15
|
+
def call(url:, product:, project:, ignore_certificate:, **)
|
16
|
+
if ignore_certificate
|
17
|
+
OpenSSL::SSL.send(:remove_const, :VERIFY_PEER)
|
18
|
+
OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE)
|
19
|
+
end
|
15
20
|
puts "diff : #{ObsDeploy::CheckDiff.new(server: url, project: project, product: product).github_diff}"
|
16
21
|
end
|
22
|
+
|
17
23
|
end
|
18
24
|
end
|
19
25
|
end
|
@@ -9,8 +9,14 @@ module ObsDeploy
|
|
9
9
|
option :package, type: :string, default: 'obs-api', desc: 'Package name'
|
10
10
|
option :product, type: :string, default: 'SLE_12_SP4', desc: 'Product name'
|
11
11
|
option :architecture, type: :string, default: 'x86_64', desc: 'Architecture'
|
12
|
+
option :ignore_certificate, aliases: ['k'], type: :bool, default: false, desc: 'Ignore invalid or self-signed SSL certificates'
|
12
13
|
|
13
|
-
def call(url:, product:, **)
|
14
|
+
def call(url:, ignore_certificate:, product:, **)
|
15
|
+
if ignore_certificate
|
16
|
+
OpenSSL::SSL.send(:remove_const, :VERIFY_PEER)
|
17
|
+
OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE)
|
18
|
+
end
|
19
|
+
|
14
20
|
puts "Available package: #{ObsDeploy::CheckDiff.new(server: url, product: product).package_version}"
|
15
21
|
end
|
16
22
|
end
|
@@ -5,8 +5,14 @@ module ObsDeploy
|
|
5
5
|
module Commands
|
6
6
|
class GetPendingMigration < Dry::CLI::Command
|
7
7
|
option :url, type: :string, default: 'https://api.opensuse.org', desc: 'API url'
|
8
|
+
option :ignore_certificate, aliases: ['k'], type: :bool, default: false, desc: 'Ignore invalid or self-signed SSL certificates'
|
8
9
|
|
9
|
-
def call(url:, **)
|
10
|
+
def call(url:, ignore_certificate:, **)
|
11
|
+
if ignore_certificate
|
12
|
+
OpenSSL::SSL.send(:remove_const, :VERIFY_PEER)
|
13
|
+
OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE)
|
14
|
+
end
|
15
|
+
|
10
16
|
migrations = ObsDeploy::CheckDiff.new(server: url).migrations
|
11
17
|
if migrations.empty?
|
12
18
|
puts 'No pending migrations'
|
data/lib/obs_deploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obs_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pereira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|