Module: HammerCLIKatello::RepositoryScopedToProduct

Instance Method Summary collapse

Instance Method Details

#validate_repo_name_requires_product_options(name_option = :option_name) ⇒ Object



3
4
5
6
7
# File 'lib/hammer_cli_katello/repository_scoped_to_product.rb', line 3

def validate_repo_name_requires_product_options(name_option = :option_name)
  validate_options :before, 'IdResolution' do
    any(:option_product_name, :option_product_id).required if option(name_option).exist?
  end
end