module JekyllRecker::Social

Social Module

Public Class Methods

action(site, args, options) click to toggle source
# File lib/jekyll_recker/social.rb, line 9
def self.action(site, args, options)
  args += %w[slack twitter] if args.empty?
  Slack.share(site, dry: options['dry']) if args.include?('slack')
  Twitter.share(site, dry: options['dry']) if args.include?('twitter')
end