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