Module: JekyllRecker::Social

Defined in:
lib/jekyll_recker/social.rb

Defined Under Namespace

Classes: Share, Slack, Twitter

Class Method Summary collapse

Class Method Details

.action(site, args, options) ⇒ Object



8
9
10
11
12
# File 'lib/jekyll_recker/social.rb', line 8

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