Sha256: feb2b392994205a1db32a50558705332a9ee2f57d51a2bfc98688e188bd28aa1
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
class S3Secure::CLI class Batch extend Memoist def initialize(*params) @params = params @command, @subcommand, @file = params end def run buckets.each do |bucket| args = @params args.pop args << bucket puts "Running: s3-secure #{args.join(' ')}".color(:green) S3Secure::CLI.start(args) end end def buckets IO.readlines(@file).map(&:strip).reject(&:empty?) end memoize :buckets end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
s3-secure-0.7.0 | lib/s3_secure/cli/batch.rb |
s3-secure-0.6.1 | lib/s3_secure/cli/batch.rb |
s3-secure-0.6.0 | lib/s3_secure/cli/batch.rb |