Class: StackTracy::CLI
- Inherits:
-
Thor
- Object
- Thor
- StackTracy::CLI
show all
- Defined in:
- lib/stack_tracy/cli.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
17
18
19
20
21
22
23
|
# File 'lib/stack_tracy/cli.rb', line 17
def method_missing(method, *args)
if File.exists? File.expand_path(method.to_s)
`tracy open #{method} #{args.join " "}`
else
raise Error, "Unrecognized command \"#{method}\". Please consult `tracy help`."
end
end
|
Instance Method Details
#open(path = ".") ⇒ Object
11
12
13
|
# File 'lib/stack_tracy/cli.rb', line 11
def open(path = ".")
StackTracy.open path, false, options
end
|