Sha256: 0bd1be0ed81384b1ea8f06e8bd8a04f7a7ec53f6a4cb91c19549c8a741e63124

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 Bytes

Contents

#!/usr/bin/env ruby

unless $:.include?(File.dirname(__FILE__) + "/../lib/")
  $: << File.dirname(__FILE__) + "/../lib"
end

require "sensu/run"

options = Sensu::Run.read_cli_opts

entity = Sensu::Run::Entity.new(options)
check = Sensu::Run::Check.new(options)
check.exec!
event = Sensu::Run::Event.new(entity, check)

api = Sensu::Run::APIClient.new(options)
api.create_entity_if_missing(entity)
api.create_event(event)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sensu-run-0.3.0 exe/sensu-run
sensu-run-0.2.0 exe/sensu-run