summaryrefslogtreecommitdiff
path: root/lib/chef/knife.rb
diff options
context:
space:
mode:
authorSteven Danna <steve@opscode.com>2015-01-22 15:55:37 +0000
committerBryan McLellan <btm@opscode.com>2015-02-09 21:19:44 -0500
commit0d5c1ba1518820e4c4dc9eb732b422e94b4b5c24 (patch)
treebac4992862aebda62367b1b168eadb21da120ebf /lib/chef/knife.rb
parent8ffa43844287691e2b88287cab6033b35b723b40 (diff)
downloadchef-0d5c1ba1518820e4c4dc9eb732b422e94b4b5c24.tar.gz
Add Knife::Core::UI#edit_hash
edit_hash is similar to edit_data except that it returns an uninflated hash. edit_data returns either a string/IO, a hash, or a full ruby object, making it difficult to work with.
Diffstat (limited to 'lib/chef/knife.rb')
-rw-r--r--lib/chef/knife.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb
index 10774acc46..e13f80b5a8 100644
--- a/lib/chef/knife.rb
+++ b/lib/chef/knife.rb
@@ -53,6 +53,7 @@ class Chef
def_delegator :@ui, :format_for_display
def_delegator :@ui, :format_cookbook_list_for_display
def_delegator :@ui, :edit_data
+ def_delegator :@ui, :edit_hash
def_delegator :@ui, :edit_object
def_delegator :@ui, :confirm