Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ thor PhotoonRails:install
- We're about to install your system.. blaa, blaa, blaa...
- We have to know you're Flick ID, get i here http://idgettr.com/
- Flickr ID: {here you should type your id}
- We also has to know you're flick api key, make one here ...
- API Key: {here you should type your key}
- class PhotoonRails < Thor # [1]
- desc "install", "install my cool stuff"
- def install
- 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")
- flickr_id = ask("Flickr ID: ")
- say("We also has to know you're flick api key, make one here ...")
- flickr_api_key = ask("API Key: ")
- # validate flickr creds
- # do cool stuff
- say("Complete!", GREEN)
- end
- end
- say "Caution!", :yellow
- ask 'Agreed?', :bold
- ask "We have noticed.", :green, limited_to: ['proceed', 'exit']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement