Class: Slackdo::Webhook

Inherits:
Object
  • Object
show all
Defined in:
lib/slackdo.rb

Instance Method Summary collapse

Instance Method Details

#configure_webhookObject



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_directoryObject



7
8
9
# File 'lib/slackdo.rb', line 7

def create_directory
  system 'mkdir ~/.slackdo'
end