Sha256: 1b3655622a22e5812a9c4e80ec0a32d46336c5354d9835ff5e846f84a65394b6

Contents?: true

Size: 885 Bytes

Versions: 29

Compression:

Stored size: 885 Bytes

Contents

module Actions
  module Katello
    module Provider
      class ManifestImport < Actions::AbstractAsyncTask
        middleware.use Actions::Middleware::PropagateCandlepinErrors

        def plan(provider, path, force)
          # TODO: extract the REST calls from Provider#import_manifest
          # and construct proper execution plan
          action_subject provider
          plan_self path: path, force: force
        end

        input_format do
          param :provider, Hash do
            param :id
          end
          param :path
          param :force
        end

        def humanized_name
          _("Import Manifest")
        end

        def run
          provider = ::Katello::Provider.find(input[:provider][:id])
          provider.import_manifest(input[:path],
                                   force:  input[:force])
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
katello-3.2.1.1 app/lib/actions/katello/provider/manifest_import.rb
katello-3.2.1 app/lib/actions/katello/provider/manifest_import.rb
katello-3.2.0 app/lib/actions/katello/provider/manifest_import.rb
katello-3.2.0.rc3 app/lib/actions/katello/provider/manifest_import.rb
katello-3.2.0.rc2 app/lib/actions/katello/provider/manifest_import.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/provider/manifest_import.rb
katello-3.2.0.rc1 app/lib/actions/katello/provider/manifest_import.rb
katello-3.1.0.1 app/lib/actions/katello/provider/manifest_import.rb
katello-3.1.0 app/lib/actions/katello/provider/manifest_import.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/provider/manifest_import.rb
katello-3.0.2 app/lib/actions/katello/provider/manifest_import.rb
katello-2.4.5 app/lib/actions/katello/provider/manifest_import.rb
katello-3.1.0.rc1 app/lib/actions/katello/provider/manifest_import.rb
katello-3.0.1 app/lib/actions/katello/provider/manifest_import.rb
katello-2.4.4 app/lib/actions/katello/provider/manifest_import.rb
katello-3.0.0 app/lib/actions/katello/provider/manifest_import.rb
katello-2.4.3 app/lib/actions/katello/provider/manifest_import.rb
katello-3.0.0.rc7 app/lib/actions/katello/provider/manifest_import.rb
katello-3.0.0.rc5 app/lib/actions/katello/provider/manifest_import.rb
katello-2.4.2 app/lib/actions/katello/provider/manifest_import.rb