[katello-devel] Content view definition command

David Davis daviddavis at redhat.com
Fri Oct 12 13:13:45 UTC 2012


I think you could access the two separately but they would all be under the content_view command. Just to throw out something to illustrate this point:

katello content_view definitions (list all the content_view_definitions)
katello content_view publish --definition=Database (create a new content view from the content view defininition)
katello content_view define or katello content_view create_definition (create a new content view definition)
katello content_view update_definition --definition=Database --add_filter=stable (or something)
katello content_view promote --view=MongoDB --env=Dev (promote the content view to the Dev environment)
katello content_view list --env=Dev (see the content views in Dev)

So you could access the definitions and views separately but you'd still call the same content_view command.

David

----- Original Message -----
> From: "Bryan Kearney" <bkearney at redhat.com>
> To: katello-devel at redhat.com
> Sent: Friday, October 12, 2012 8:15:43 AM
> Subject: Re: [katello-devel] Content view definition command
> 
> On 10/11/2012 03:02 PM, Mike McCune wrote:
> > On 10/11/2012 11:45 AM, Eric Helms wrote:
> >> On 10/11/2012 02:42 PM, David Davis wrote:
> >>> I am working on content view definitions and having a
> >>> content_view_definition command is starting to cause problems due
> >>> to
> >>> its length:
> >>>
> >>> https://dl.dropbox.com/u/29929/Screenshot%20at%202012-10-11%2014%3A38%3A42.png
> >>>
> >>>
> >>> It would be nice to shorten it to make it easier to develop the
> >>> cli
> >>> command and for the end user to type. I was thinking of some
> >>> options:
> >>>
> >>> cv_definition
> >>> content_definition
> >>> view_definition
> >>> content_view_def
> >>> definition
> >>>
> >>> Anyone have a preference?
> >>>
> >>> David
> >>>
> >>> _______________________________________________
> >>> katello-devel mailing list
> >>> katello-devel at redhat.com
> >>> https://www.redhat.com/mailman/listinfo/katello-devel
> >> Is it possible to do subcommands so all definition related items
> >> lived
> >> under that?
> >>
> >> katello content_view definition
> >>
> >
> > the question too, do we want to really make users have to
> > understand and
> > act on 'content views' and 'content view definitions' as separate
> > objects?
> >
> > Why not just 'content views'?
> 
> I think if if you set up rules, you will be able to splat out 2
> different snapshots from that rules. So, we will need names for the
> splatter and the splatee.
> 
> -- bk
> 
> 
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel
> 




More information about the katello-devel mailing list