Class: Flydata::Command::Login

Inherits:
Base
  • Object
show all
Defined in:
lib/flydata/command/login.rb

Constant Summary collapse

LOGIN_TRIAL_TIMES =
3

Instance Attribute Summary

Attributes inherited from Base

#opts

Instance Method Summary collapse

Methods inherited from Base

#ask_input_table_name, #ask_yes_no, #choose_one, #flydata, #initialize, #newline, #register_crontab, #retrieve_data_entries, #separator

Constructor Details

This class inherits a constructor from Flydata::Command::Base

Instance Method Details

#runObject



5
6
7
8
9
# File 'lib/flydata/command/login.rb', line 5

def run
  ret = (LOGIN_TRIAL_TIMES)
  raise "Login failed #{LOGIN_TRIAL_TIMES} times." unless ret
  ret
end