Class: AppCommand::Update

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

Instance Method Summary collapse

Instance Method Details

#executeObject



5
6
7
8
9
10
11
12
# File 'lib/routes/update.rb', line 5

def execute

    @opts = command_options
    @args = arguments
    opts_validate
    opts_routing

end

#opts_routingObject



18
19
20
21
22
# File 'lib/routes/update.rb', line 18

def opts_routing

    update

end

#opts_validateObject



14
15
16
# File 'lib/routes/update.rb', line 14

def opts_validate

end

#updateObject



24
25
26
27
28
29
30
31
# File 'lib/routes/update.rb', line 24

def update

    Convoy::Logger.output.puts "Command: #{command_name}"
    Convoy::Logger.output.puts "Options: #{options}"
    Convoy::Logger.output.puts "Command options: #{command_options}"
    Convoy::Logger.output.puts "Arguments: #{arguments}"

end