Sha256: 33f3d0147a53c88c64f57eab26ce0ab0d53f5ad1e86dec18e0a6382387000463
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
module KatelloForemanEngine module Actions class OrgDestroy < Dynflow::Action input_format do param :foreman_id, String end def self.subscribe Headpin::Actions::OrgDestroy end def plan(org) if foreman_org = Bindings.organization_find("KT-[#{input['label']}]") plan_self('foreman_id' => foreman_org['organization']['id']) end end def run Bindings.organization_destroy(input['foreman_id']) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems