busbar-cli 1.9.0 → 1.9.1
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29a7bd327b3e932f2397d411f6e8c1ee05b1bc49
|
|
4
|
+
data.tar.gz: 89b7eabc66d47936de07f952dc018d96a30f7638
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11f96ea7c83feafaf03b9d6c1e043e258a3a42c6274f00663ba8178f82c9f426b9bc32f232345f0f0f5c4f5e451db545a2df93683242752e0881dfea896e06ab
|
|
7
|
+
data.tar.gz: 7968f87a897452a35fd8e80fdffa63c8f6233ca14fcf68dfb676b1cd51685134c3a8b8431507806e18d109d46d25dac75a0813c37534aa4a3aea8e14911686ec
|
|
@@ -3,8 +3,8 @@ module Commands
|
|
|
3
3
|
extend ActiveSupport::Concern
|
|
4
4
|
|
|
5
5
|
included do
|
|
6
|
-
desc 'logs
|
|
7
|
-
|
|
6
|
+
desc 'logs APPLICATION_CONTAINER ENV [COMPONENT_TYPE]',
|
|
7
|
+
'Fetch the logs from a application container. You can find the container for your application through the "busbar containers" command.'
|
|
8
8
|
method_option :since,
|
|
9
9
|
default: '0',
|
|
10
10
|
type: :string,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Version Variables
|
|
2
2
|
VERSION = '1.9'.freeze
|
|
3
|
-
BUSBAR_PATCH_VERSION = '
|
|
3
|
+
BUSBAR_PATCH_VERSION = '1'.freeze
|
|
4
4
|
KUBECTL_PATCH_VERSION = '6'.freeze
|
|
5
5
|
BUSBAR_VERSION = "#{VERSION}.#{BUSBAR_PATCH_VERSION}".freeze
|
|
6
6
|
KUBECTL_VERSION = "#{VERSION}.#{KUBECTL_PATCH_VERSION}".freeze
|
|
@@ -3,9 +3,11 @@ module Services
|
|
|
3
3
|
def self.call(container_id:, environment_name:, since:)
|
|
4
4
|
Services::Kube.setup
|
|
5
5
|
|
|
6
|
+
container_name = container_id.split('-')[0..-3].join('-')
|
|
7
|
+
|
|
6
8
|
Kernel.exec(
|
|
7
9
|
"#{KUBECTL} --context=#{Services::Kube.current_profile} " \
|
|
8
|
-
"logs -f --since=#{since} #{container_id} -n #{environment_name}"
|
|
10
|
+
"logs -f --since=#{since} #{container_id} #{container_name} -n #{environment_name}"
|
|
9
11
|
)
|
|
10
12
|
end
|
|
11
13
|
end
|