lib/simple_deploy/notifier/campfire.rb in simple_deploy-0.4.3 vs lib/simple_deploy/notifier/campfire.rb in simple_deploy-0.4.4

- old
+ new

@@ -13,12 +13,15 @@ attributes = stack.attributes @subdomain = attributes['campfire_subdomain'] @room_ids = attributes['campfire_room_ids'] ||= '' @logger.debug "Campfire subdomain '#{@subdomain}'." @logger.debug "Campfire room ids '#{@room_ids}'." - @token = @config.notifications['campfire']['token'] - @campfire = Tinder::Campfire.new @subdomain, :token => @token, - :verify => true + + if @subdomain + @token = @config.notifications['campfire']['token'] + @campfire = Tinder::Campfire.new @subdomain, :token => @token, + :verify => false + end end def send(message) @logger.info "Sending Campfire notifications." @room_ids.split(',').each do |room_id|