Sha256: 44f051c5e0892006b9ea90614b180d4f2fc52778f1e2d23c5ac31f4f5f51f07b
Contents?: true
Size: 809 Bytes
Versions: 1
Compression:
Stored size: 809 Bytes
Contents
#!/usr/bin/env ruby require 'slackdo' config = Slackdo::Config.new config.configure_init case ARGV[0] when 'configure' config.configure_slack_webhook if ARGV[1] == 'slack' config.configure_trello_api if ARGV[1] == 'trello' && ARGV[2].nil? config.disable_trello if ARGV[1] == 'trello' && ARGV[2] == 'disable' config.enable_trello if ARGV[1] == 'trello' && ARGV[2] == 'enable' when 'task' slack = Slackdo::Task.new slack.add_task file = File.read("#{ENV['HOME']}/.slackdo/config.json") hash = JSON.parse(file) if hash['allow_trello_pushing'] == 'true' card_name = slack.get_message card_desc = slack.get_notes trello = Slackdo::Card.new trello.add_card(card_name, card_desc) end when 'reminder' slack = Slackdo::Reminder.new slack.add_reminder end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slackdo-0.3.1 | bin/slackdo |