35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# File 'lib/objects/modules/workspace_menu.rb', line 35
def
{
ls: {
description: 'list all available resources',
console_only: false
},
lsa: {
description: 'list all active resources',
console_only: true
},
workon: {
description: 'work on specific resources only, inactivating all others from this selection',
usage: 'workon identifier1, identifier2 ...',
console_only: true
},
disable: {
description: 'remove a resource from this selection',
usage: 'disable identifier1, identifier2 ...',
console_only: true
},
enable: {
description: 're-enable a resource within this selection',
usage: 'enable identifier1, identifier2 ...',
console_only: true
},
enable!: {
description: 'enable all resources within this selection',
console_only: true
},
disable!: {
description: 'disable all resources within this selection',
console_only: true
},
run: {
description: 'execute a command to be run over ssh against all active resources',
usage: "run 'command1', 'command2', ...",
console_only: false,
terminal_usage: "run 'command1' 'command2' ..."
},
interactive: {
description: 'enter an interactive command session for all active resources',
console_only: false
},
tree: {
description: 'print a tree view for all resources and their sub-resources',
console_only: false
},
ping: {
description: 'ping all resources to test connectivity',
console_only: false
},
put: {
description: 'upload a file or directory using scp',
usage: "put 'local/path','remote/path'",
console_only: false,
terminal_usage: "put 'local/path' 'remote/path'"
},
rsync: {
description: 'upload a file or directory using rsync (faster)',
usage: "rsync 'local/path','remote/path'",
console_only: false,
terminal_usage: "rsync 'local/path' 'remote/path'"
},
get: {
description: 'download a file',
usage: "get 'remote/path', 'local/path'",
console_only: false,
terminal_usage: "get 'remote/path' 'local/path"
},
cd: {
description: 'enter the namespace for a resource from this selection',
usage: 'cd identifier',
console_only: true
},
save: {
description: 'Save the current tree state',
console_only: true
},
meta: {
description: 'Print out all metadata related to this node'
},
registry: {
description: 'List all user defined commands present in your registry, and available to this namespace',
console_only: false
},
execute_script: {
description: 'execute a bash script',
console_only: false,
usage: 'execute_script "script_name"',
terminal_usage: 'execute_script script_name'
}
}
end
|