Skip to content

Instantly share code, notes, and snippets.

@snecklifter
Forked from jlsherrill/ListenOnCandlepin.md
Last active March 9, 2016 12:03
Show Gist options
  • Save snecklifter/6bf0282e49ada1dc386a to your computer and use it in GitHub Desktop.
Save snecklifter/6bf0282e49ada1dc386a to your computer and use it in GitHub Desktop.
clearing ListenOnCandlepin Events

Shut down foreman-tasks:

  service foreman-tasks stop

Open the rails console:

foreman-rake console

and run:

ForemanTasks::Task.where(:state => :paused).where(:label => 'Actions::Candlepin::ListenOnCandlepinEvents').destroy_all
exit

start foreman-tasks:

service foreman-tasks start
@Cyber-Lord
Copy link

please guys some one help me with this assignment
Assignment 3

Implement a class named Baby. The Baby class should contain attributes of a newborn child like name, age e.t.c. You should have a minimum of seven (7) attributes. In the case that you wonder what kind of attributes you should include to attain the minimum of 7, try to recall how a Baby can be described, say in terms of facial features e.t.c. Do not provide attributes in excess of 10!
In the baby class define setters and getters for the defined attributes above. 
In the main method of the baby class, instantiate at least two objects of the Baby class.
Change the state of the attributes by using the already defined mutators.  
Print to the console to show the mutations that occurred in the different attributes.
You may decide to provide initial values for the attributes you have conceived yourself for extra credit. YES it is possible to score 110% on this assignment.
Finally, concatenate all attributes of the Baby class while using appropriate escape characters, and print to the screen as a properly formatted single String; this concatenation should be done inside a method that can be called to display the properly formatted values of the attributes. Make sure you invoke this method in your main method. 

This is a pretty simple assignment but it requires that you carefully follow the instructions in above to obtain full marks. A future assignment will build on this current assignment, therefore, it is pertinent that you get this assignment right as mistakes in this assignment shall be lived with in the next assignment. Marks have been assigned for good design, and following naming conventions that were discussed in class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment