Skip to content

Commit

Permalink
Deprecated #in_build_dir and #in_download_dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoskings committed Apr 3, 2011
1 parent 585fa06 commit 80bde3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/babushka/helpers/path_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ def in_dir dir, opts = {}, &block
end

def in_build_dir path = '', &block
in_dir Babushka::BuildPrefix / path, :create => true, &block
log_error "#{caller.first}: #in_build_dir is deprecated. Instead, use cd(Babushka::BuildPrefix)."
cd Babushka::BuildPrefix / path, :create => true, &block
end

def in_download_dir path = '', &block
in_dir Babushka::DownloadPrefix / path, :create => true, &block
log_error "#{caller.first}: #in_download_dir is deprecated. Instead, use cd(Babushka::DownloadPrefix)."
cd Babushka::DownloadPrefix / path, :create => true, &block
end
end
end

0 comments on commit 80bde3f

Please sign in to comment.