bin/shef in chef-0.9.8.beta.1 vs bin/shef in chef-0.9.8.beta.2

- old
+ new

@@ -16,32 +16,19 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# TODO::EVIL -require "rubygems" -require "mixlib/cli" +begin + require "rubygems" +rescue LoadError +end require "irb" require "irb/completion" require 'irb/ext/save-history' -# TODO::EVIL $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) require "chef/shef" -# dirty hack to make IRB initialize shef -module IRB - class << self - alias :run_original_config :run_config - - def run_config - run_original_config - Shef.init - end - end -end - -Shef.parse_opts -IRB.start +Shef.start