Class: Blitz::Command::Curl

Inherits:
Blitz::Command show all
Defined in:
lib/blitz/command/curl.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Blitz::Command

Api

Instance Method Summary collapse

Methods included from Utils

#shift

Methods included from Helper

#ask, #error, #msg

Instance Method Details

#cmd_help(argv) ⇒ Object



4
5
6
# File 'lib/blitz/command/curl.rb', line 4

def cmd_help argv
    help
end

#cmd_run(argv) ⇒ Object Also known as: cmd_default



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/blitz/command/curl.rb', line 8

def cmd_run argv
    begin
        test = Blitz::Curl.parse argv
    rescue "help"
        return help
    end
    if test.class == Blitz::Curl::Sprint
        sprint test
    else
        rush test
    end
end