lib/simnos/dsl/subscription.rb in simnos-0.1.1 vs lib/simnos/dsl/subscription.rb in simnos-0.1.2
- old
+ new
@@ -1,13 +1,14 @@
+require 'colorize'
require 'simnos/utils'
module Simnos
class DSL
class Subscription
include Simnos::TemplateHelper
def create
- Simnos.logger.info("Create Topic(#{@aws_topic[:topic].topic_arn.split(':').last}) Subscription. protocol: #{protocol.inspect}, endpoint: #{masked_endpoint.inspect}#{@options[:dry_run] ? ' [dry-run]' : ''}")
+ Simnos.logger.info("Create Topic(#{@aws_topic[:topic].topic_arn.split(':').last}) Subscription. protocol: #{protocol.inspect}, endpoint: #{masked_endpoint.inspect}#{@options[:dry_run] ? ' [dry-run]' : ''}".colorize(:green))
return if @options[:dry_run]
client.subscribe(
topic_arn: @aws_topic[:topic].topic_arn,
protocol: protocol,