summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-08-26 09:25:30 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-08-26 09:25:30 +0530
commitc9018f96d82b470043b00e8040a36362b83c78be (patch)
tree242e3700daa25498083a74ebdc3fd2e3d4923db8
parent154434875bb42f87641127b3645e2cd00d11266a (diff)
downloadchef-VSingh/knife-list-deprecation-update.tar.gz
Remove border color optionVSingh/knife-list-deprecation-update
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--lib/chef/knife/config_list.rb3
-rw-r--r--spec/integration/knife/config_list_spec.rb10
2 files changed, 6 insertions, 7 deletions
diff --git a/lib/chef/knife/config_list.rb b/lib/chef/knife/config_list.rb
index 931ba59f93..c9f821e2a8 100644
--- a/lib/chef/knife/config_list.rb
+++ b/lib/chef/knife/config_list.rb
@@ -127,8 +127,7 @@ class Chef
else
table.render do |renderer|
renderer.border do
- mid "-"
- style :green
+ mid "-"
end
renderer.padding = [0, padding, 0, 0] # pad right with 2 characters
end
diff --git a/spec/integration/knife/config_list_spec.rb b/spec/integration/knife/config_list_spec.rb
index d00cf11dc4..b05350ed87 100644
--- a/spec/integration/knife/config_list_spec.rb
+++ b/spec/integration/knife/config_list_spec.rb
@@ -84,7 +84,7 @@ describe "knife config list", :workstation do
EOH
it { is_expected.to eq <<~EOH.delete("#") }
Profile Client Key Server #
- \e[32m--------------------------------------------------------------------------------\e[0m#
+ --------------------------------------------------------------------------------#
*default testuser ~/.chef/testkey.pem https://example.com/organizations/testorg #
EOH
end
@@ -108,7 +108,7 @@ describe "knife config list", :workstation do
EOH
it { is_expected.to eq <<~EOH.delete("#") }
Profile Client Key Server #
- \e[32m--------------------------------------------------------------------------------\e[0m#
+ --------------------------------------------------------------------------------#
*default testuser ~/.chef/testkey.pem https://example.com/organizations/testorg #
prod testuser ~/.chef/testkey.pem https://example.com/organizations/prod #
qa qauser ~/src/qauser.pem https://example.com/organizations/testorg #
@@ -135,7 +135,7 @@ describe "knife config list", :workstation do
EOH
it { is_expected.to eq <<~EOH.delete("#") }
Profile Client Key Server #
- \e[32m--------------------------------------------------------------------------------\e[0m#
+ --------------------------------------------------------------------------------#
default testuser ~/.chef/testkey.pem https://example.com/organizations/testorg #
*prod testuser ~/.chef/testkey.pem https://example.com/organizations/prod #
qa qauser ~/src/qauser.pem https://example.com/organizations/testorg #
@@ -162,7 +162,7 @@ describe "knife config list", :workstation do
EOH
it { is_expected.to eq <<~EOH.delete("#") }
Profile Client Key Server #
- \e[32m--------------------------------------------------------------------------------\e[0m#
+ --------------------------------------------------------------------------------#
default testuser ~/.chef/testkey.pem https://example.com/organizations/testorg #
prod testuser ~/.chef/testkey.pem https://example.com/organizations/prod #
qa qauser ~/src/qauser.pem https://example.com/organizations/testorg #
@@ -185,7 +185,7 @@ describe "knife config list", :workstation do
EOH
it { is_expected.to eq <<~EOH.delete("#") }
Profile Client Key Server #
- \e[32m--------------------------------------------------------------\e[0m#
+ --------------------------------------------------------------#
*default https://example.com/organizations/testorg #
EOH
end