Sha256: 1e8f2321b7cb1f335f792c827393aa5dd998d620949418c83d71d6355798e140

Contents?: true

Size: 735 Bytes

Versions: 3

Compression:

Stored size: 735 Bytes

Contents

module Actions
  module Katello
    module Repository
      class CreateRoot < Actions::EntryAction
        def plan(root)
          root.save!
          repository = ::Katello::Repository.new(:environment => root.organization.library,
                                                 :content_view_version => root.organization.library.default_content_view_version,
                                                 :root => root)
          repository.relative_path = repository.custom_repo_path
          repository.save!
          action_subject(repository)
          plan_action(::Actions::Katello::Repository::Create, repository)
        end

        def humanized_name
          _("Create")
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katello-4.15.0 app/lib/actions/katello/repository/create_root.rb
katello-4.15.0.rc2 app/lib/actions/katello/repository/create_root.rb
katello-4.15.0.rc1 app/lib/actions/katello/repository/create_root.rb