Class: Flydata::Command::Setlogdel
- Defined in:
- lib/flydata/command/setlogdel.rb
Instance Attribute Summary
Attributes inherited from Base
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
#run ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/flydata/command/setlogdel.rb', line 4 def run Flydata::Command::Login.new.run unless flydata.credentials.authenticated? # Choose target data_entry data_entry = choose_data_entry return unless data_entry # Confirm and update set_log_deletion data_entry if confirm_setting data_entry register_crontab end |