busbar-cli 1.5.1 → 1.6.0

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: 46bd67f6e86d08346e180e5ff3f0549c8c71b910
4
- data.tar.gz: 8b60d538b86b7ac653b0173b42eadba64894d7ce
3
+ metadata.gz: d0a8bc2e1b3bebb1f35fa98319c4a94e7dbcb05a
4
+ data.tar.gz: ddab08eb399165b06dc3d710fa0613da6ab98a60
5
5
  SHA512:
6
- metadata.gz: 49fce910d34b9960a1f6d28ad8cedfdcca336067125a91fd7842799b8bae78e74aa332362830885ac290bbae4160f2b019078b5bd903067fd9b5186156f5f1e8
7
- data.tar.gz: 238f9a106627cddb36a1208dbe9a17891c48fa45d4f9898ac9b33d3d96b0343f0fdc8914f225b37c34516504659fcee3c4d14a23f40a6ce85df0a41d3e8c713a
6
+ metadata.gz: cd12508abb9296367404a16b9339ba402e6d5d8a0a187a6536c993a7b19c143732297df89055fcc19c0bdd1de8116573689eefd32551a8b14d5ecedca4451fbc
7
+ data.tar.gz: ef9dd515f7fea626217d83fbe0e4f1639ee7f93faf3e7bf955359113343144a7c649c3a316956500c9b736fca774d052f18b57276fdee9eefb4a9be0b47d8091
@@ -19,14 +19,18 @@ Services::BusbarConfig.first_run unless File.file?(BUSBAR_CONFIG_FILE_PATH)
19
19
  ## Overwriteable
20
20
  DOCKER_PRIVATE_REGISTRY = ENV.fetch('DOCKER_PRIVATE_REGISTRY', '127.0.0.1:5000').freeze
21
21
  CONFIG_FILE_PATH = ENV.fetch('BUSBAR_CONFIG_FILE_PATH', '.busbar.yml').freeze
22
- DEFAULT_BRANCH = ENV.fetch('BRANCH',
23
- Services::BusbarConfig.get('default_git_branch')).freeze
22
+
23
+ ## Set on config file
24
+ BUSBAR_API_URL = ENV.fetch('BUSBAR_API_URL',
25
+ Services::BusbarConfig.get('busbar_api_url')).freeze
26
+ BUSBAR_PROFILE = ENV.fetch('BUSBAR_PROFILE',
27
+ Services::BusbarConfig.get('busbar_profile')).freeze
24
28
  KUBECTL_CONFIG_FILE_URL = ENV.fetch('KUBECTL_CONFIG_FILE_URL',
25
29
  Services::BusbarConfig.get('kubectl_config_url')).freeze
26
30
  KUBECTL_CONFIG_VERSION_URL = ENV.fetch('KUBECTL_CONFIG_FILE_URL',
27
31
  Services::BusbarConfig.get('kubectl_config_version_url')).freeze
28
- BUSBAR_PROFILE = ENV.fetch('BUSBAR_PROFILE',
29
- Services::BusbarConfig.get('busbar_profile')).freeze
32
+ DEFAULT_BRANCH = ENV.fetch('BRANCH',
33
+ Services::BusbarConfig.get('default_git_branch')).freeze
30
34
 
31
35
  Services::Kube.setup unless File.file?(KUBECTL_CONFIG_FILE) && \
32
36
  File.file?(KUBECTL_CONFIG_VERSION_FILE) && File.file?(KUBECTL)
@@ -1,6 +1,6 @@
1
1
  # Version Variables
2
- VERSION = '1.5'.freeze
3
- BUSBAR_PATCH_VERSION = '1'.freeze
4
- KUBECTL_PATCH_VERSION = '8'.freeze
2
+ VERSION = '1.6'.freeze
3
+ BUSBAR_PATCH_VERSION = '0'.freeze
4
+ KUBECTL_PATCH_VERSION = '13'.freeze
5
5
  BUSBAR_VERSION = "#{VERSION}.#{BUSBAR_PATCH_VERSION}".freeze
6
6
  KUBECTL_VERSION = "#{VERSION}.#{KUBECTL_PATCH_VERSION}".freeze
@@ -3,9 +3,13 @@ require 'yaml'
3
3
  module Helpers
4
4
  class BusbarConfig
5
5
  CONFIG_OPTIONS = {
6
- default_git_branch: {
7
- text: 'Please provide the default git branch',
8
- default: 'master'
6
+ busbar_api_url: {
7
+ text: 'Please provide the Busbar API URL',
8
+ default: nil
9
+ },
10
+ busbar_profile: {
11
+ text: 'Please provide the Busbar profile',
12
+ default: nil
9
13
  },
10
14
  kubectl_config_url: {
11
15
  text: 'Please provide the kubectl remote configuration URL',
@@ -15,9 +19,9 @@ module Helpers
15
19
  text: 'Please provide the kubectl configuration version URL',
16
20
  default: nil
17
21
  },
18
- busbar_profile: {
19
- text: 'Please provide the Busbar profile',
20
- default: nil
22
+ default_git_branch: {
23
+ text: 'Please provide the default git branch',
24
+ default: 'master'
21
25
  }
22
26
  }.freeze
23
27
 
@@ -33,7 +33,7 @@ class Request
33
33
  end
34
34
 
35
35
  def api_url
36
- "http://busbar.#{Services::Kube.current_profile}"
36
+ BUSBAR_API_URL
37
37
  end
38
38
 
39
39
  def execute(request)
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.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Marques
@@ -248,4 +248,3 @@ signing_key:
248
248
  specification_version: 4
249
249
  summary: A CLI for Busbar
250
250
  test_files: []
251
- has_rdoc: