DevOps Curriculum

...String, Integer, Float, Boolean, Array, Hash Control flow: if, each, case, break... Functions: def, return, implicit return in methods and blocks Errors, raise and rescue Classes and inheritance The difference...

...addresses.size # => 3 Now write a method AddressBook#search that takes a query string and returns an array of Contact objects that match the given word in any of their properties...

Ändere die Konfiguration in der ConfigMap (valide Konfiguration). Du kannst beispielsweise mit return einen custom HTTP Statuscode zurückgeben. Wird die Konfiguration jetzt erfolgreich angewendet? Verwende kubectl rollout restart...

...Erstelle eine neue ConfigMap, die den gleichen Inhalt hat wie deine bisherige. Ändere den returncode nochmals auf einen neuen Wert. Editiere das Deployment und lass es die neue ConfigMap verwenden...

DevOps Curriculum

...die grundsätzlichen "Bestandteile" von iptables Tables Chains Rules Targets Du verstehst was drop, reject, return und accept machen. Du kennst die 4 default tables Wie kannst du dir iptables Regeln...

Best results in other decks

docs.ruby-lang.org

Use return to return from a method. return accepts a value that will be the return value of the method call. Use break to quit from a block and...

...serve as an example in the details below: def example puts yield puts 'done' return 'example' end # Intended usage & output: example { 'hallo welt' } # hallo welt # done # => 'example' Return within a...

...IN (?)", excluded_ids) When the exclusion list is empty, you would expect this to return all records. However, this is not what happens: # Broken example User.where("id NOT IN (?)", []).to...

...SELECT `users`.* FROM `users` WHERE (id NOT IN (NULL)) Passing an empty exclusion list returns no records at all! See below for better implementations. Rails 4+ Use the .not method...

Search in all decks