Class: Chef::Knife::HardwareEdit

Inherits:
Chef::Knife show all
Includes:
HardwareBase
Defined in:
lib/chef/knife/hardware_edit.rb

Instance Method Summary collapse

Methods included from HardwareBase

#getUuid

Instance Method Details

#runObject



28
29
30
31
32
33
34
35
# File 'lib/chef/knife/hardware_edit.rb', line 28

def run
  uuid = getUuid()
  dbedit = Chef::Knife::DataBagEdit.new
  puts "Showing data bag item hardware #{uuid}"
  dbedit.config[:editor] = ENV['EDITOR']
  dbedit.name_args = ['hardware', uuid]
  dbedit.run
end