commands/execute.rb in rhoconnect-3.4.2 vs commands/execute.rb in rhoconnect-3.4.3

- old
+ new

@@ -26,10 +26,16 @@ unless windows? tasks << 'dtach' tasks << 'rhoconnect_attach' unless jruby? end tasks << if jruby? then "rhoconnect_war" else "rhoconnect_console" end - + # 'rhoconnect spec' command is available only if it called from root of + # rhoconnect app and its bundle includes 'rspec' gem + if File.exists?(File.join(Dir.pwd,'Gemfile')) + require 'bundler' + tasks << 'rhoconnect_spec' if Bundler.load.specs.find{ |s| s.name == 'rspec' } + end + tasks.each do |dir| Dir.glob(File.join(File.dirname(__FILE__), "#{dir}", "*.rb")) do |file| require file end end