Class: AppCommand::Upload

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

Constant Summary collapse

PROJECTS =
'Projects'
TEMPLATES =
'Templates'

Instance Method Summary collapse

Instance Method Details

#executeObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/routes/upload.rb', line 8

def execute

    begin

        @opts   = command_options
        @args   = arguments
        @action = determine_action

        opts_validate
        opts_routing

    rescue => e

        Blufin::Terminal::print_exception(e)

    end

end

#opts_routingObject

Raises:

  • (RuntimeError)


31
32
33
34
35
# File 'lib/routes/upload.rb', line 31

def opts_routing

    raise RuntimeError, "Not yet implemented! -> #{@action}"

end

#opts_validateObject



27
28
29
# File 'lib/routes/upload.rb', line 27

def opts_validate

end