Sha256: f53bb81796b6e34e0d1f2b9616d418ec28ba307b35894741ea07b8d1fadb71b7

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

module HerokuConfig
  class AwsRotateAll < Base
    def initialize(options={})
      @options = options
      @file = options[:file]
    end

    def run
      if ENV['HEROKU_CONFIG_TEST']
        puts "NOOP"
        return
      end

      apps.each do |app|
        AwsRotate.new(@options.merge(app: app)).run
      end
    end

    def apps
      IO.readlines(@file).map(&:strip).reject(&:empty?)
    end
    memoize :apps
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
heroku-config-0.3.0 lib/heroku_config/aws_rotate_all.rb