module Skunk::Cli::Command::Shareable

This is a module that will be used for sharing reports to a server

Public Instance Methods

share(reporter) click to toggle source

It shares the report using SHARE_URL or skunk.fastruby.io. It will post all results in JSON format and return a status message.

@param [Skunk::Command::StatusReporter] A status reporter with analysed modules :reek: FeatureEnvy

# File lib/skunk/cli/commands/shareable.rb, line 13
def share(reporter)
  sharer = Skunk::Command::StatusSharer.new(@options)
  sharer.status_reporter = reporter
  sharer.share
end