Sha256: e64d4ec088b520ca80b6346183fbd7380ab9e4fe21995c78f291c679171bcb09

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

module ConfigureS3Website
  class Runner
    def self.run(options, standard_input = STDIN)
      S3Client.configure_website options
      unless user_already_has_cf_configured options
        CloudFrontClient.create_distribution_if_user_agrees options, standard_input
      end
    end

    private

    def self.user_already_has_cf_configured(options)
      config_source = options[:config_source]
      config_source.cloudfront_distribution_id
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
configure-s3-website-1.3.0 lib/configure-s3-website/runner.rb