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.5.1 app/lib/actions/katello/repository/create_root.rb
katello-4.6.0 app/lib/actions/katello/repository/create_root.rb
katello-4.6.0.rc2 app/lib/actions/katello/repository/create_root.rb
katello-4.6.0.rc1 app/lib/actions/katello/repository/create_root.rb
katello-4.5.0 app/lib/actions/katello/repository/create_root.rb
katello-4.5.0.rc2 app/lib/actions/katello/repository/create_root.rb
katello-4.4.1 app/lib/actions/katello/repository/create_root.rb
katello-4.5.0.rc1 app/lib/actions/katello/repository/create_root.rb
katello-4.4.0.2 app/lib/actions/katello/repository/create_root.rb
katello-4.4.0.1 app/lib/actions/katello/repository/create_root.rb
katello-4.3.1 app/lib/actions/katello/repository/create_root.rb
katello-4.4.0 app/lib/actions/katello/repository/create_root.rb
katello-4.4.0.rc2 app/lib/actions/katello/repository/create_root.rb
katello-4.4.0.rc1 app/lib/actions/katello/repository/create_root.rb
katello-4.2.2 app/lib/actions/katello/repository/create_root.rb
katello-4.3.0 app/lib/actions/katello/repository/create_root.rb
katello-4.3.0.rc4 app/lib/actions/katello/repository/create_root.rb
katello-4.3.0.rc3 app/lib/actions/katello/repository/create_root.rb
katello-4.3.0.rc2.1 app/lib/actions/katello/repository/create_root.rb
katello-4.3.0.rc2 app/lib/actions/katello/repository/create_root.rb