Class: ClusterFsck::Commands::List

Inherits:
Object
  • Object
show all
Includes:
S3Methods
Defined in:
lib/clusterfsck/commands/list.rb

Instance Method Summary collapse

Methods included from S3Methods

#all_environments, #all_files, #bucket, #cluster_fsck_env, credentials, #credentials, #full_s3_path, s3, #s3, #s3_object

Instance Method Details

#run_command(args, options = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/clusterfsck/commands/list.rb', line 8

def run_command(args, options = {})
  @cluster_fsck_env = if args.length > 0
                  args.first
                else
                  ClusterFsck.cluster_fsck_env
                end

  $stdout.puts(all_files.join("\n"))
end