benofsky-bolt 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bolt/base.rb +2 -2
- metadata +1 -1
data/lib/bolt/base.rb
CHANGED
@@ -20,7 +20,7 @@ module Bolt
|
|
20
20
|
# Creates a directory, prefixes $config.base_dir if required
|
21
21
|
def create_directory(directory, options = {})
|
22
22
|
options[:error_if_exists] = (options[:error_if_exists].nil?) ? true : options[:error_if_exists]
|
23
|
-
directory = directory
|
23
|
+
directory = d(directory) if options[:base_dir].nil?
|
24
24
|
|
25
25
|
if File.directory?(directory)
|
26
26
|
raise ArgumentError, "#{directory} exists already." if options[:error_if_exists]
|
@@ -32,7 +32,7 @@ module Bolt
|
|
32
32
|
|
33
33
|
# Forces removal of directory, <tt>directory</tt>
|
34
34
|
def remove_directory(directory)
|
35
|
-
directory = directory
|
35
|
+
directory = d(directory)
|
36
36
|
FileUtils.rm_rf(directory)
|
37
37
|
puts "Removed #{directory}"
|
38
38
|
end
|