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: 125665a1c9ed922bdd32007387ecee936e23258e
4
- data.tar.gz: eefe8eda831a56ab09b7707da18c20b4b5f76f18
3
+ metadata.gz: 29a7bd327b3e932f2397d411f6e8c1ee05b1bc49
4
+ data.tar.gz: 89b7eabc66d47936de07f952dc018d96a30f7638
5
5
  SHA512:
6
- metadata.gz: 3838da79ee661606a8270204b4e036d3773a0af5c36d07b2485595e67b4e9959ddd68d4d7a3337466db4741fe92a6a8f18a827e55aec1e5a24372a5928551e4e
7
- data.tar.gz: 71c3d4a73bb634667d72c043dd48b428a3880d36ad7951ffd514ddcadebbac67ca6354a12f94e8112f3d8391ee81bb5c6574571ecfde9b86c5b3db5d945032a6
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 APP_OR_CONTAINER ENV [COMPONENT_TYPE]',
7
- 'Fetch the logs from a component or container'
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 = '0'.freeze
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
@@ -89,6 +89,7 @@ module Services
89
89
  end
90
90
 
91
91
  def write_from_url(url)
92
+ Helpers::BusbarConfig.ensure_dependencies
92
93
  response = Net::HTTP.get(URI(url))
93
94
  open(BUSBAR_CONFIG_FILE_PATH, 'wb') do |file|
94
95
  file.write(response)
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: busbar-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Marques