Class: ClusterFuck::Commands::List

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

Instance Method Summary collapse

Methods included from S3Methods

#all_files, #amicus_env, #bucket, #credentials, #full_s3_path, #s3, #s3_object

Instance Method Details

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



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

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

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