lib/fingercap/persistant_directory.rb in fingercap-0.3.2 vs lib/fingercap/persistant_directory.rb in fingercap-0.3.3

- old
+ new

@@ -9,11 +9,10 @@ # # Create multiple directories at once # # PersistantDirectory.create('public/icons', 'public/files') def create(*args) - options = args.extract_options! args.each do |directory| try_sudo "mkdir -p -m 775 #{shared_path}/#{directory}" try_sudo "chown #{fetch(:runner, "app")}:wheel #{shared_path}/#{directory}" end end @@ -26,12 +25,10 @@ # # Symlink multiple directories at once # # PersistantDirectory.symlink('public/icons', 'public/files') def symlink(*args) - options = args.extract_options! directory = args.first - run "ln -s #{shared_path}/#{directory} #{current_path}/#{directory}" end end Capistrano.plugin :persistant_directory, PersistantDirectory \ No newline at end of file