Sha256: 282a55aa2950ecb32637e10f3da6cf3777e17dae8a9efa8c578cc8aeeb7527d5

Contents?: true

Size: 229 Bytes

Versions: 23

Compression:

Stored size: 229 Bytes

Contents

require_relative 'settings'

module Slack
  def send_to_slack(file_path)
    `curl https://slack.com/api/files.upload -F token='#{Settings.slack_token}' -F file="@#{file_path}", -F channels='#{Settings.slack_channel}'`
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
veracodecli-1.1.0 lib/veracodecli/slack.rb
veracodecli-1.0.22 lib/veracodecli/slack.rb
veracodecli-1.0.21 lib/veracodecli/slack.rb
veracodecli-1.0.20 lib/veracodecli/slack.rb
veracodecli-1.0.19 lib/veracodecli/slack.rb
veracodecli-1.0.18 lib/veracodecli/slack.rb
veracodecli-1.0.17 lib/veracodecli/slack.rb
veracodecli-1.0.16 lib/veracodecli/slack.rb
veracodecli-1.0.15 lib/veracodecli/slack.rb
veracodecli-1.0.14 lib/veracodecli/slack.rb
veracodecli-1.0.13 lib/veracodecli/slack.rb
veracodecli-1.0.12 lib/veracodecli/slack.rb
veracodecli-1.0.11 lib/veracodecli/slack.rb
veracodecli-1.0.10 lib/veracodecli/slack.rb
veracodecli-1.0.9 lib/veracodecli/slack.rb
veracodecli-1.0.8 lib/veracodecli/slack.rb
veracodecli-1.0.7 lib/veracodecli/slack.rb
veracodecli-1.0.6 lib/veracodecli/slack.rb
veracodecli-1.0.5 lib/veracodecli/slack.rb
veracodecli-1.0.4 lib/veracodecli/slack.rb