Class: Slackdo::Webhook
- Inherits:
-
Object
- Object
- Slackdo::Webhook
- Defined in:
- lib/slackdo.rb
Instance Method Summary collapse
Instance Method Details
#configure_webhook ⇒ Object
10 11 12 13 14 |
# File 'lib/slackdo.rb', line 10 def configure_webhook cli = HighLine.new webhook = cli.ask 'Configure your webhook:' system "echo #{webhook} > ~/.slackdo/webhook" end |
#create_directory ⇒ Object
7 8 9 |
# File 'lib/slackdo.rb', line 7 def create_directory system 'mkdir ~/.slackdo' end |