Changeset 428

Show
Ignore:
Timestamp:
02/26/08 00:42:16 (11 months ago)
Author:
mbailey
Message:

fix for windows users

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/deprec/capistrano_extensions.rb

    r392 r428  
    11# Copyright 2006-2008 by Mike Bailey. All rights reserved. 
    22require 'capistrano' 
     3require 'fileutils' 
    34 
    45module Deprec2 
     
    5758        end 
    5859      end 
    59       system "mkdir -p #{path_dir}" if ! File.directory?(path_dir) 
     60      FileUtils.mkdir_p "#{path_dir}" if ! File.directory?(path_dir) 
     61      # added line above to make windows compatible 
     62      # system "mkdir -p #{path_dir}" if ! File.directory?(path_dir)  
    6063      File.open(full_path, 'w'){|f| f.write rendered_template } 
    6164      puts "[done] #{full_path} written"