Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. $ thor PhotoonRails:install
  2. We're about to install your system.. blaa, blaa, blaa...
  3. We have to know you're Flick ID, get i here http://idgettr.com/
  4. Flickr ID: {here you should type your id}
  5.  
  6. We also has to know you're flick api key, make one here ...
  7. API Key: {here you should type your key}
  8.  
  9. class PhotoonRails < Thor # [1]
  10.  
  11. desc "install", "install my cool stuff"
  12. def install
  13. say("We're about to install your system.. blaa, blaa, blaa... We have to know you're Flick ID, get i here http://idgettr.com")
  14. flickr_id = ask("Flickr ID: ")
  15.  
  16. say("We also has to know you're flick api key, make one here ...")
  17. flickr_api_key = ask("API Key: ")
  18.  
  19. # validate flickr creds
  20. # do cool stuff
  21.  
  22. say("Complete!", GREEN)
  23.  
  24. end
  25. end
  26.  
  27. say "Caution!", :yellow
  28. ask 'Agreed?', :bold
  29. ask "We have noticed.", :green, limited_to: ['proceed', 'exit']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement