Method: Cow::Application#run

Defined in:
lib/cow/application.rb

#runObject



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/cow/application.rb', line 87

def run
  command = ARGV[0]
  option1 = ARGV[1]
  option2 = ARGV[2]
  option3 = ARGV[3]

  case command
  when 'add', 'a'
    cmd_add(option1, option2, option3)
  when 'connect', 'c'
    cmd_connect(option1)
  when 'find', 'f'
    cmd_find(option1)
  when 'list', 'l'
    cmd_list(option1)
  when 'server-list', 's'
    cmd_server_list
  when 'update', 'u'
    cmd_update(option1)
  else
    show_help
  end
end