def trash(path = Dir.pwd, dirname = FalkorLib.config[:templates][:trashdir], _options = {})
      #args = method(__method__).parameters.map { |arg| arg[1].to_s }.map { |arg| { arg.to_sym => eval(arg) } }.reduce Hash.new, :merge
      #ap args
      exit_status = 0
      trashdir = File.join(File.realpath(path), dirname)
      if Dir.exist?(trashdir)
        warning "The trash directory '#{dirname}' already exists"
        return 1
      end
      Dir.chdir(path) do
        info "creating the trash directory '#{dirname}'"
        exit_status = run %(
          mkdir -p #{dirname}
          echo '*' > #{dirname}/.gitignore
                )
        if FalkorLib::Git.init?(path)
          exit_status = FalkorLib::Git.add(File.join(trashdir.to_s, '.gitignore' ),
                                           'Add Trash directory',
                                           :force => true )
        end
      end
      exit_status.to_i
    end
def trash(path = Dir.pwd, dirname = FalkorLib.config[:templates][:trashdir], _options = {})
      #args = method(__method__).parameters.map { |arg| arg[1].to_s }.map { |arg| { arg.to_sym => eval(arg) } }.reduce Hash.new, :merge
      #ap args
      exit_status = 0
      trashdir = File.join(File.realpath(path), dirname)
      if Dir.exist?(trashdir)
        warning "The trash directory '#{dirname}' already exists"
        return 1
      end
      Dir.chdir(path) do
        info "creating the trash directory '#{dirname}'"
        exit_status = run %(
          mkdir -p #{dirname}
          echo '*' > #{dirname}/.gitignore
                )
        if FalkorLib::Git.init?(path)
          exit_status = FalkorLib::Git.add(File.join(trashdir.to_s, '.gitignore' ),
                                           'Add Trash directory',
                                           :force => true )
        end
      end
      exit_status.to_i
    end
makefile

 Initialize a trash directory in path