Class: Appsignal::CLI::NotifyOfDeploy

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/cli/notify_of_deploy.rb

Class Method Summary collapse

Class Method Details

.run(options, config) ⇒ Object


5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/appsignal/cli/notify_of_deploy.rb', line 5

def run(options, config)
  validate_active_config(config)
  validate_required_options(options, [:revision, :user, :environment])

  Appsignal::Marker.new(
    {
      :revision => options[:revision],
      :user => options[:user]
    },
    config
  ).transmit
end