Skip to content

Commit

Permalink
work unless bundler isn't install.
Browse files Browse the repository at this point in the history
  • Loading branch information
moro committed Jan 24, 2011
1 parent 7ce7305 commit c5e0da8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/spe_cuke/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
require 'yaml'
require 'drb'
require 'timeout'
require 'bundler'
begin
require 'bundler'
rescue LoadError => bundler_not_installed_ignore
end

module SpeCuke
class Environment
Expand All @@ -17,7 +20,7 @@ def command(cmd)
end

def bundlized?
(@root + 'Gemfile').exist?
defined?(Bundler) && (@root + 'Gemfile').exist?
end

def gem_format_executable?
Expand Down

0 comments on commit c5e0da8

Please sign in to comment.