Sha256: 6792c5270ac5a2b319571b35a833b4f4f3f56cd93802e5cf114cba724534c6fe

Contents?: true

Size: 713 Bytes

Versions: 68

Compression:

Stored size: 713 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

68 entries across 68 versions & 1 rubygems

Version Path
katello-4.9.0.rc2 app/lib/actions/katello/repository/create_root.rb
katello-4.9.0.rc1 app/lib/actions/katello/repository/create_root.rb
katello-4.8.1 app/lib/actions/katello/repository/create_root.rb
katello-4.7.5 app/lib/actions/katello/repository/create_root.rb
katello-4.8.0 app/lib/actions/katello/repository/create_root.rb
katello-4.8.0.rc2 app/lib/actions/katello/repository/create_root.rb
katello-4.7.4 app/lib/actions/katello/repository/create_root.rb
katello-4.8.0.rc1 app/lib/actions/katello/repository/create_root.rb
katello-4.7.3 app/lib/actions/katello/repository/create_root.rb
katello-4.7.2 app/lib/actions/katello/repository/create_root.rb
katello-4.7.1 app/lib/actions/katello/repository/create_root.rb
katello-4.6.2.1 app/lib/actions/katello/repository/create_root.rb
katello-4.6.2 app/lib/actions/katello/repository/create_root.rb
katello-4.7.0 app/lib/actions/katello/repository/create_root.rb
katello-4.6.1 app/lib/actions/katello/repository/create_root.rb
katello-4.7.0.rc2 app/lib/actions/katello/repository/create_root.rb
katello-4.7.0.rc1 app/lib/actions/katello/repository/create_root.rb
katello-4.4.2.2 app/lib/actions/katello/repository/create_root.rb
katello-4.4.2.1 app/lib/actions/katello/repository/create_root.rb
katello-4.4.2 app/lib/actions/katello/repository/create_root.rb