lib/org-converge/babel.rb in org-converge-0.0.5 vs lib/org-converge/babel.rb in org-converge-0.0.6

- old
+ new

@@ -31,11 +31,10 @@ # TODO: should apply :tangle-mode for permissions directory = File.expand_path(File.dirname(file)) if not Dir.exists?(directory) begin if script[:header][:mkdirp] == 'true' - p script logger.info "Create dir for #{file} since it does not exists..." FileUtils.mkdir_p(File.dirname(file), :mode => 0755) else logger.warn "Cannot tangle #{file} because directory does not exists!" end @@ -63,10 +62,10 @@ end logger.info "Tangling succeeded!" end - def tangle_runnable_blocks!(run_dir='run') + def tangle_runnable_blocks!(run_dir='run', options={}) FileUtils.mkdir_p(run_dir) logger.info "Tangling #{ob.scripts.count} scripts within directory: #{run_dir}..." ob.scripts.each_pair do |script_key, script|