Class: TalkToYourApp::Plugins::Rake::Plugin

Inherits:
TalkToYourApp::Plugin show all
Defined in:
lib/talk_to_your_app/plugins/rake/plugin.rb

Class Method Summary collapse

Methods inherited from TalkToYourApp::Plugin

log_level, requires_connection, requires_gem, tools

Class Method Details

.validate_enablement!(options) ⇒ Object

Raises:



30
31
32
33
34
35
36
# File 'lib/talk_to_your_app/plugins/rake/plugin.rb', line 30

def self.validate_enablement!(options)
  return unless Array(options[:allowed]).empty?

  raise ConfigurationError,
    "talk_to_your_app: the rake plugin requires a non-empty `allowed:` list of rake task names, " \
    "e.g. `config.plugin :rake, allowed: [\"stats\", \"report:generate\"]`. Tasks not on the list are refused."
end