Method: Chef::Knife::Core::ObjectLoader#load_from
- Defined in:
- lib/chef/knife/core/object_loader.rb
#load_from(repo_location, *components) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/chef/knife/core/object_loader.rb', line 37 def load_from(repo_location, *components) unless object_file = find_file(repo_location, *components) ui.error "Could not find or open file '#{components.last}' in current directory or in '#{repo_location}/#{components.join('/')}'" exit 1 end object_from_file(object_file) end |