lib/standup.rb in standup-0.3.16 vs lib/standup.rb in standup-0.3.17
- old
+ new
@@ -63,10 +63,10 @@
def self.version
File.read(File.expand_path('../../VERSION', __FILE__)).strip
end
def self.run_from_command_line
- unless ENV['BUNDLE_GEMFILE']
+ if File.exists?('Gemfile') && !ENV['BUNDLE_GEMFILE']
Kernel.exec "bundle exec standup #{ARGV.join(' ')}"
end
opt_parser = Trollop::Parser.new do
version "Standup #{Standup.version} (c) 2010 Ilia Ablamonov, Artem Orlov, Cloud Castle Inc."
\ No newline at end of file