Sha256: f29028e64605d92a61ab1662facf81878c422d2d0abcb88f9d9e96348029f3aa

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

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

    def run
      key_id = config.get("AWS_ACCESS_KEY_ID")
      unless key_id
        puts "WARN: No AWS_ACCESS_KEY_ID found for #{@app.color(:green)} app. Exiting."
        exit 0
      end

      aws_key = AwsKey.new(@options, key_id)
      aws_key.rotate
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heroku-config-0.2.0 lib/heroku_config/aws_rotate.rb
heroku-config-0.1.0 lib/heroku_config/aws_rotate.rb