Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6340: continuous_builder.patch

File continuous_builder.patch, 0.6 kB (added by tec, 2 years ago)
  • continuous_builder.rb

    old new  
    3131  
    3232    private 
    3333      def log_file_path 
    34         @log_file_path ||= @options[:application_root] + "/log/last_build.log" 
     34        @log_file_path ||= File.join(@options[:application_root], 'log', 'last_build.log') 
    3535      end 
    3636     
    3737      def lock_file_path 
     
    5454          grab_lock 
    5555          yield 
    5656        ensure 
    57           File.delete(lock_file_path) 
     57          release_lock 
    5858        end 
    5959      end 
    6060