Class: Actions::Katello::Repository::CreateRoot
- Inherits:
-
EntryAction
- Object
- EntryAction
- Actions::Katello::Repository::CreateRoot
- Defined in:
- app/lib/actions/katello/repository/create_root.rb
Instance Method Summary collapse
Instance Method Details
#humanized_name ⇒ Object
16 17 18 |
# File 'app/lib/actions/katello/repository/create_root.rb', line 16 def humanized_name _("Create") end |
#plan(root) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/lib/actions/katello/repository/create_root.rb', line 5 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 |