Class: Flydata::Command::Status

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

Instance Attribute Summary

Attributes inherited from Base

#opts

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#ask_input_table_name, #ask_yes_no, #choose_one, #dashboard_url, #data_entry, #data_port, #flydata, #initialize, #newline, #redshift_cluster, #redshift_console_url, #register_crontab, #retrieve_data_entries, #separator, #show_purpose_name, #source

Methods included from ExclusiveRunnable

included

Methods included from Flydata::CommandLoggable

#before_logging, #log_error_stderr, #log_info_stdout, #log_warn_stderr

Constructor Details

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

Class Method Details

.slopObject



8
9
10
11
12
# File 'lib/flydata/command/status.rb', line 8

def self.slop
  Slop.new do
    on 'skip-helper', 'Do not include Helper status'
  end
end

Instance Method Details

#runObject



13
14
15
16
17
18
19
20
21
# File 'lib/flydata/command/status.rb', line 13

def run
  show_purpose_name
  sender = Flydata::Command::Sender.new
  sender.status
  unless opts.skip_helper?
    helper = Flydata::Command::Helper.new
    helper.status
  end
end