You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseBadRequest,"invalid parameter: name must be at least one character long and contain only letters, numbers, periods (.), underscores (_), and hyphens (-)"unlessdesired_name =~ /\A[\w.-]+\Z/
raiseNotFound,"Cannot find cookbook named #{cookbook_name} at #{expected_location}. Note: Tarball generation only applies to cookbooks under the first directory in the server's Chef::Config.cookbook_path variable and does to apply overrides."unlessFile.directory?expected_location
raiseFileParameterException,"invalid parameter: file must be a File"unlessfile_param.respond_to?(:has_key?) && file_param[:tempfile].respond_to?(:read)
28
+
tarball_path=file_param[:tempfile].path
29
+
raiseFileParameterException,"invalid tarball: (try creating with 'tar czf cookbook.tar.gz cookbook/')"unlesssystem("tar","tzf",tarball_path)
0 commit comments