Class: AppCommand::APIList

Inherits:
Convoy::ActionCommand::Base
  • Object
show all
Defined in:
lib/routes/api_list.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/routes/api_list.rb', line 5

def execute

    begin

        @opts = command_options
        @args = arguments

        opts_validate
        opts_routing

    rescue => e

        Blufin::Terminal::print_exception(e)

    end

end

#opts_routingObject



27
28
29
30
31
# File 'lib/routes/api_list.rb', line 27

def opts_routing

    Blufin::Terminal::info("Available #{Blufin::Terminal::format_highlight('APIs')} are:", Blufin::SiteResolver::get_available_apis, true)

end

#opts_validateObject



23
24
25
# File 'lib/routes/api_list.rb', line 23

def opts_validate

end