Module: Tane::Commands
- Defined in:
- lib/tane.rb,
lib/tane/commands/base.rb
Defined Under Namespace
Classes: App, Base, Claim, Create, Email, Event, Exec, Help, Init, Login, Logout, Open, Refresh, Signup, Support
Class Method Summary
collapse
Class Method Details
.command_list_and_help ⇒ Object
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/tane.rb', line 25
def command_list_and_help
command_list = "\n"
command_list += "The commands I know are:"
($commands - ["app", "base"]).each do |command|
command_list += "\n #{command}"
end
command_list += "\n\n"
command_list += "For help on any of these commands do"
command_list += "\n\t"
command_list += "tane help command_name"
command_list += "\n\n"
end
|
.const_missing(name) ⇒ Object
40
41
42
43
44
|
# File 'lib/tane.rb', line 40
def const_missing(name)
puts "Unsupported command #{name.downcase}."
puts command_list_and_help
exit 1
end
|