adamwiggins / rush

Ruby replacement for bash+ssh

This URL has Read+Write access

rush / doc / design
187a9285 » adamwiggins 2008-01-22 design and empty specs Comment 1 Rush::Box
2 - creates a new context for localhost
3
4 Rush::Process
5 - gets the list of all processes
6 - knows the pid
7 - knows the uid
8 - knows the executed binary
9 - knows the command line
10 - can kill itself
11 - can kill itself even when wedged
12
13 Rush::Entry
14 - base class for File and Dir
15 - knows its parent directory
16 - knows its creation_time
17 - knows its modified_time
18 - knows its accessed_time
19 - can rename itself
20 - can move itself to another dir
21
22 Rush::File
23 - is not a directory
24 - knows its size in bytes
25 - can read its contents
26 - can gsub_contents! to do find-in-file replace
27 - can destroy itself
28
29 Rush::Dir
30 - lists its contents (files and dirs)
31 - lists just files
32 - lists just dirs
33 - can create a new file
34 - can create a new subdir
35 - knows its size in bytes, which includes its contents recursively
36 - can destroy itself when empty
37 - can destroy itself when not empty
38
39 Rush::NumericExtensions
40 - can specify N.kb
41 - can specify N.mb
42 - can specify N.gb
43