lib/ronin/payloads/helpers/file_system.rb in ronin-exploits-0.2.0 vs lib/ronin/payloads/helpers/file_system.rb in ronin-exploits-0.2.1

- old
+ new

@@ -19,52 +19,52 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #++ # -require 'ronin/payloads/helpers/exceptions/unimplemented' +require 'ronin/payloads/helpers/exceptions/not_implemented' module Ronin module Payloads module Helpers module FileSystem # # Returns +true+ if the specified _path_ exists, returns +false+ # otherwise. # def exists?(path) - raise(Unimplemented,"the exists? method has not been implemented",caller) + raise(NotImplemented,"the exists? method has not been implemented",caller) end # # Returns +true+ if the specified _path_ is a file, returns +false+ # otherwise. # def file?(path) - raise(Unimplemented,"the file? method has not been implemented",caller) + raise(NotImplemented,"the file? method has not been implemented",caller) end # # Returns +true+ if the specified _path_ is a directory, returns # +false+ otherwise. # def dir?(path) - raise(Unimplemented,"the dir? method has not been implemented",caller) + raise(NotImplemented,"the dir? method has not been implemented",caller) end # # Returns the contents of the directory at the specified _path_. # def dir(path) - raise(Unimplemented,"the dir method has not been implemented",caller) + raise(NotImplemented,"the dir method has not been implemented",caller) end # # Returns all the paths matching the specified globbed _pattern_. # def glob(pattern) - raise(Unimplemented,"the glob method has not been implemented",caller) + raise(NotImplemented,"the glob method has not been implemented",caller) end # # Returns the current working directory. # @@ -88,27 +88,27 @@ # # Returns the contents of the file at the specified _path_. # def read_file(path) - raise(Unimplemented,"the read_file method has not been implemented",caller) + raise(NotImplemented,"the read_file method has not been implemented",caller) end # # Writes the specified _contents_ to the file at the specified # _path_. # def write_file(path,contents) - raise(Unimplemented,"the write_file method has not been implemented",caller) + raise(NotImplemented,"the write_file method has not been implemented",caller) end # # Appends the specified _contents_ to the file at the specified # _path_. # def append_file(path,contents) - raise(Unimplemented,"the append_file method has not been implemented",caller) + raise(NotImplemented,"the append_file method has not been implemented",caller) end # # Touches the file at the specified _path_. # @@ -118,24 +118,24 @@ # # Removes the file at the specified _path_. # def rm(path) - raise(Unimplemented,"the rm method has not been implemented",caller) + raise(NotImplemented,"the rm method has not been implemented",caller) end # # Removes the directory at the specified _path_. # def rmdir(path) - raise(Unimplemented,"the rmdir method has not been implemented",caller) + raise(NotImplemented,"the rmdir method has not been implemented",caller) end # # Recursively removes the file or directory at the specified _path_. # def rm_r(path) - raise(Unimplemented,"the rm_r method has not been implemented",caller) + raise(NotImplemented,"the rm_r method has not been implemented",caller) end protected #