lib/vidar/slack_notification.rb in vidar-1.5.3 vs lib/vidar/slack_notification.rb in vidar-1.5.4

- old
+ new

@@ -1,6 +1,16 @@ module Vidar class SlackNotification + def self.get + new( + github: Config.get!(:github), + revision: Config.get!(:revision), + revision_name: Config.get!(:revision_name), + build_url: Config.build_url, + deploy_config: Config.deploy_config + ) + end + def initialize(github:, revision:, revision_name:, deploy_config:, build_url: nil, connection: Faraday.new) @github = github @revision = revision @revision_name = revision_name @build_url = build_url