Class: Minitest::Naga::CLI
- Inherits:
-
Thor
- Object
- Thor
- Minitest::Naga::CLI
- Defined in:
- lib/minitest/naga/cli.rb
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
9 10 11 |
# File 'lib/minitest/naga/cli.rb', line 9 def about puts "minitest-naga is created by Wen Ting Wang as part of their final dissertation." end |
#hi ⇒ Object
19 20 21 |
# File 'lib/minitest/naga/cli.rb', line 19 def hi puts "hi"*10 end |
#rand ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/minitest/naga/cli.rb', line 24 def rand puts [ "Batman is cool.", "When I finish cleaning whilst wearing rubber gloves, I use handwash to clean the gloves.", "I was listening to OneRepublic - Good Life, while writing this.", "Wobble wobble.", "Howdy!", "Why are you using this command? Shouldn't you be unit testing?", "'The night is darkest just before the dawn. I promise you, dawn is coming.'", "Sup?", "<ENTER SOMETHING RANDOM AND SILLY>", "Unagi!", "Salmon skin roll!", "I can count to 3. 1, 2, 3!", "Why Naga you ask? Well, this creator here watched a TV show called the Legend of Korra. Korra, the main character, has a polar-bear-dog called Naga and well basically I want one. So the system is codenamed Naga. I say codenamed because I'm pretty much waiting for someone to tell me off and say 'Hey missy, you ain't allowed to use the name Naga! I own it!'. So until that day comes, Naga it is.", "Everything will be okay." ].sample end |
#signout ⇒ Object
50 51 52 53 54 55 |
# File 'lib/minitest/naga/cli.rb', line 50 def signout if File.file?(NagaApiClient.FILE_PATH) File.delete(NagaApiClient.FILE_PATH) puts "Signed out." end end |
#ty ⇒ Object
44 45 46 47 |
# File 'lib/minitest/naga/cli.rb', line 44 def ty puts "Thank you so much for using Naga! If it has been even the tiniest bit fun for you, then that makes me really happy. If you actually liked it even a little bit, then that makes me even happier. K, bye. *creator flies away*" puts "- Ting" end |
#wut ⇒ Object
14 15 16 |
# File 'lib/minitest/naga/cli.rb', line 14 def wut puts "wut"*10 end |