Skip to content

Commit

Permalink
Cleanup documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lwoggardner committed Dec 22, 2014
1 parent 4cb9307 commit e5c1f2e
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 10 deletions.
4 changes: 3 additions & 1 deletion Gemfile
@@ -1,4 +1,6 @@
source "http://rubygems.org"
source "http://bundler.rubygems.org"

#gem 'rfuse', :path => "../rfuse"

# Specify your gem's dependencies in rfusefs.gemspec
gemspec
6 changes: 6 additions & 0 deletions History.rdoc
@@ -1,3 +1,9 @@
=== 1.0.3 / 2014-12-22

* Pushed some internals up to RFuse

* Allow filesystems to implement signal handlers

=== 1.0.1 / 2013-12-19

* Add FuseFS.main to create pretty usage messages
Expand Down
7 changes: 3 additions & 4 deletions README.rdoc
Expand Up @@ -29,8 +29,7 @@ See samples under /samples and also the following starter classes

Then start your filesystem with

* {FuseFS.start}
* {FuseFS.main}
* {FuseFS.main} or {FuseFS.start}

Finally to use the filesystem open up your favourite file browser/terminal and
explore the contents under <mountpoint>
Expand Down Expand Up @@ -64,7 +63,7 @@ Happy Filesystem Hacking!

* FUSE (http://fuse.sourceforge.org)
* Ruby (>=1.9)
* rfuse (~> 1.0)
* rfuse (~> 1.1)

== INSTALL:

Expand All @@ -85,7 +84,7 @@ After checking out the source, run:

* Copyright (c) 2005 Greg Millam. (FuseFS)
* Copyright (c) 2009 Kyle Maxwell. (FuseFS)
* Copyright (c) 2012 Grant Gardner. (RFuseFS)
* Copyright (c) 2012 - 2014 Grant Gardner. (RFuseFS)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
15 changes: 15 additions & 0 deletions lib/fuse/fusedir.rb
Expand Up @@ -120,7 +120,21 @@ def to_statistics(free_space=nil,free_nodes=nil)
# * {#file?}(from), {#can_write?}(to), {#can_delete?}(from) and if all true
# * {#read_file}(from), {#write_to}(to), {#delete}(from)
# * otherwise reject the rename
#
# === Signals
#
# The filesystem can handle a signal by providing a `sig<name>` method. eg 'sighup'
# {#sigint} and {#sigterm} are handled by default to provide a means to exit the filesystem
class FuseDir

# @!method sigint()
# @return [void]
# Handle the INT signal and exit the filesystem

# @!method sigterm()
# @return [void]
# Handle the TERM signal and exit the filesystem

INIT_TIMES = Array.new(3,0)

# base,rest = split_path(path)
Expand Down Expand Up @@ -307,6 +321,7 @@ def mounted();end
# @return [void]
def unmounted();end


end

DEFAULT_FS = FuseDir.new()
Expand Down
1 change: 1 addition & 0 deletions lib/fuse/rfusefs-fuse.rb
@@ -1,6 +1,7 @@
# RFuseFS - FuseFS over RFuse
require 'rfuse'
require 'fcntl'
require 'forwardable'

module FuseFS
#Which raw api should we use?
Expand Down
2 changes: 1 addition & 1 deletion lib/fusefs/pathmapper.rb
Expand Up @@ -13,7 +13,7 @@ module FuseFS
#
class PathMapperFS < FuseDir

# Represents a mappted file or directory
# Represents a mapped file or directory
class MNode

# Merge extended attributes with the ones from the underlying file
Expand Down
5 changes: 3 additions & 2 deletions lib/rfusefs.rb
Expand Up @@ -130,11 +130,12 @@ def FuseFS.mount_under(mountpoint, *args)
@fuse = Fuse.new(@fs,mountpoint,*args)
end

# This is the main loop waiting on then executing filesystem operations from the
# This is the main loop waiting on, then executing, filesystem operations from the
# kernel.
#
# Note: Running in a separate thread is generally not useful. In particular
# you cannot access your filesystem using ruby File operations.
# you cannot use Ruby File operations to access your filesystem from
# within the ruby process that calls run.
# @note RFuseFS extension
def FuseFS.run
@fuse.run()
Expand Down
4 changes: 2 additions & 2 deletions rfusefs.gemspec
Expand Up @@ -20,9 +20,9 @@ Gem::Specification.new do |s|
s.has_rdoc = 'yard'
s_extra_rdoc_files = 'History.rdoc'

s.add_dependency("rfuse", "~> 1.1.0.RC0")
s.add_dependency("rfuse", "~> 1.1")
s.add_development_dependency("rake")
s.add_development_dependency("rspec","~> 2")
s.add_development_dependency("rspec","~> 3")
s.add_development_dependency("yard")
s.add_development_dependency("redcarpet")
s.add_development_dependency("sqlite3")
Expand Down

0 comments on commit e5c1f2e

Please sign in to comment.