lib/advance.rb in advance-0.4.1 vs lib/advance.rb in advance-0.4.2
- old
+ new
@@ -138,12 +138,11 @@
do_command_wo_log "rm -rf #{previous_dir_path}"
end
end
def pipeline(pipeline_path)
- expanded_path = File.expand_path(pipeline_path)
- load expanded_path
+ load pipeline_path
end
def count_files(dir)
file_count = 0
Find.find(dir) do |path|
@@ -344,9 +343,11 @@
raise error_msg
end
end
def ensure_bin_on_path
+ $LOAD_PATH << File.expand_path(File.join(caller_locations.first.path, "../../lib"))
+
advance_bin_path = File.expand_path(File.join(File.dirname(__FILE__), "../bin"))
add_dir_to_path(advance_bin_path)
caller_path = File.dirname(caller[0].split(/:/).first)
add_dir_to_path(caller_path)