class Filerary::Command

Public Instance Methods

cleanup() click to toggle source
# File lib/filerary/command.rb, line 42
def cleanup
  Filerary::Librarian.new.cleanup
end
collect(*files) click to toggle source
# File lib/filerary/command.rb, line 18
def collect(*files)
  Filerary::Librarian.new.collect(files)
end
destroy() click to toggle source
# File lib/filerary/command.rb, line 56
def destroy
  Filerary::Librarian.new.destroy
end
list() click to toggle source
# File lib/filerary/command.rb, line 13
def list
  puts Filerary::Librarian.new.list
end
remove(path) click to toggle source
# File lib/filerary/command.rb, line 47
def remove(path)
  begin
    Filerary::Librarian.new.remove(path)
  rescue ArgumentError => e
    STDERR.puts "#{e.class}: #{e.message}: #{path}"
  end
end
show(path) click to toggle source
# File lib/filerary/command.rb, line 28
def show(path)
  begin
    puts Filerary::Librarian.new.show(path)
  rescue ArgumentError => e
    STDERR.puts "#{e.class}: #{e.message}: #{path}"
  end
end
update() click to toggle source
# File lib/filerary/command.rb, line 37
def update
  Filerary::Librarian.new.update
end
version() click to toggle source
# File lib/filerary/command.rb, line 8
def version
  puts VERSION
end