Class: S3sec::Commands::Check
- Inherits:
-
S3sec::Command
- Object
- S3sec::Command
- S3sec::Commands::Check
- Defined in:
- lib/s3sec/commands/check.rb
Instance Method Summary collapse
- #execute(input: $stdin, output: $stdout) ⇒ Object
-
#initialize(options) ⇒ Check
constructor
A new instance of Check.
Methods inherited from S3sec::Command
#command, #config, #cursor, #editor, #exec_exist?, #generator, #pager, #pastel, #platform, #prompt, #screen, #which
Constructor Details
#initialize(options) ⇒ Check
13 14 15 |
# File 'lib/s3sec/commands/check.rb', line 13 def initialize() @options = end |
Instance Method Details
#execute(input: $stdin, output: $stdout) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/s3sec/commands/check.rb', line 17 def execute(input: $stdin, output: $stdout) output.puts 'Wrong credentials' && return unless validate_credentials extentions = choose_extentions buckets = get_buckets tree, data = prepare_data(buckets, get_files(buckets, extentions)) render_results(output, tree, data) end |