Sha256: 52ff7bd59e6daa270a20242b5ee13522b95d70e42a45a29fb6dbd61526dbf8ad

Contents?: true

Size: 359 Bytes

Versions: 3

Compression:

Stored size: 359 Bytes

Contents

class SlackSmartBot
  def update_shortcuts_file
    file = File.open("#{config.path}/shortcuts/#{config.shortcuts_file}", "w")
    file.write @shortcuts.inspect
    file.close

    if config.on_master_bot
      file = File.open("#{config.path}/shortcuts/shortcuts_global.rb", "w")
      file.write @shortcuts_global.inspect
      file.close
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack-smart-bot-1.10.0 lib/slack/smart-bot/utils/update_shortcuts_file.rb
slack-smart-bot-1.9.2 lib/slack/smart-bot/utils/update_shortcuts_file.rb
slack-smart-bot-1.9.1 lib/slack/smart-bot/utils/update_shortcuts_file.rb