Class: Terminalwire::Server::Resource::Directory
- Defined in:
- lib/terminalwire/server/resource.rb
Instance Method Summary collapse
- #create(path) ⇒ Object (also: #mkdir)
- #delete(path) ⇒ Object (also: #rm)
- #exist?(path) ⇒ Boolean
- #list(path) ⇒ Object (also: #ls)
Instance Method Details
#create(path) ⇒ Object Also known as: mkdir
99 100 101 |
# File 'lib/terminalwire/server/resource.rb', line 99 def create(path) command("create", path: path.to_s) end |
#delete(path) ⇒ Object Also known as: rm
108 109 110 |
# File 'lib/terminalwire/server/resource.rb', line 108 def delete(path) command("delete", path: path.to_s) end |
#exist?(path) ⇒ Boolean
104 105 106 |
# File 'lib/terminalwire/server/resource.rb', line 104 def exist?(path) command("exist", path: path.to_s) end |
#list(path) ⇒ Object Also known as: ls
94 95 96 |
# File 'lib/terminalwire/server/resource.rb', line 94 def list(path) command("list", path: path.to_s) end |