Sha256: a96fb4b2447fb3c664f9a040b4f2c0b45c3736c99f98fd6b050271faf337bf20

Contents?: true

Size: 726 Bytes

Versions: 100

Compression:

Stored size: 726 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, false, true)
        end

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

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
katello-4.0.3 app/lib/actions/katello/repository/create_root.rb
katello-3.18.5 app/lib/actions/katello/repository/create_root.rb
katello-4.0.2.1 app/lib/actions/katello/repository/create_root.rb
katello-4.1.2.1 app/lib/actions/katello/repository/create_root.rb
katello-4.0.2 app/lib/actions/katello/repository/create_root.rb
katello-4.1.2 app/lib/actions/katello/repository/create_root.rb
katello-3.18.4 app/lib/actions/katello/repository/create_root.rb
katello-4.1.1 app/lib/actions/katello/repository/create_root.rb
katello-4.1.0 app/lib/actions/katello/repository/create_root.rb
katello-4.0.1.2 app/lib/actions/katello/repository/create_root.rb
katello-3.18.3.1 app/lib/actions/katello/repository/create_root.rb
katello-4.1.0.rc2.2 app/lib/actions/katello/repository/create_root.rb
katello-4.1.0.rc2.1 app/lib/actions/katello/repository/create_root.rb
katello-4.0.1.1 app/lib/actions/katello/repository/create_root.rb
katello-3.18.3 app/lib/actions/katello/repository/create_root.rb
katello-4.1.0.rc2 app/lib/actions/katello/repository/create_root.rb
katello-4.0.1 app/lib/actions/katello/repository/create_root.rb
katello-4.1.0.rc1.1 app/lib/actions/katello/repository/create_root.rb
katello-4.1.0.rc1 app/lib/actions/katello/repository/create_root.rb
katello-4.0.0 app/lib/actions/katello/repository/create_root.rb