Sha256: 63bd9ab91fbe31ac9abd8d726cff1646b59dc9436033e215f5ed3a1f8c72f900

Contents?: true

Size: 534 Bytes

Versions: 2

Compression:

Stored size: 534 Bytes

Contents

module KatelloForemanEngine
  module Actions
    class DistributionUnpublish < Dynflow::Action

      def self.subscribe
        Katello::Actions::RepositoryDestroy
      end

      input_format do
        param :medium_id, String
      end

      def plan(repo)
        path = Helpers.installation_media_path(repo.uri)
        if medium = Bindings.medium_find(path)
          plan_self('medium_id' => medium['id'])
        end
      end

      def run
        Bindings.medium_destroy(input['medium_id'])
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
katello-foreman-engine-0.0.3 lib/katello_foreman_engine/actions/distribution_unpublish.rb
katello-foreman-engine-0.0.2 lib/katello_foreman_engine/actions/distribution_unpublish.rb