Sha256: 3eb9a55a675c304ada693e09d6a5ee078ddde734db77f4736a1f8afa22d8d110
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
module KatelloForemanEngine module Actions class ContentViewPromote < Dynflow::Action def self.subscribe Katello::Actions::ContentViewPromote end def plan(*args) unless Bindings.environment_find(input['organization_label'], input['to_env_label'], input['label']) plan_self input end end input_format do param :id, Integer param :label, String param :organization_label, String param :from_env_label, String param :to_env_label, String end def run Bindings.environment_create(input['id'], input['organization_label'], input['to_env_label'], input['label']) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katello-foreman-engine-0.0.1 | lib/katello_foreman_engine/actions/content_view_promote.rb |