Class: Stoplight::Admin::Actions::LockRed

Inherits:
Action
  • Object
show all
Defined in:
lib/stoplight/admin/actions/lock_red.rb

Overview

This action locks light with the specific name red

Instance Method Summary collapse

Methods inherited from Action

#initialize

Constructor Details

This class inherits a constructor from Stoplight::Admin::Actions::Action

Instance Method Details

#call(params) ⇒ void

This method returns an undefined value.

Parameters:

  • params (Hash)

    query parameters



10
11
12
13
14
# File 'lib/stoplight/admin/actions/lock_red.rb', line 10

def call(params)
  light_names(params).each do |name|
    lights_repository.lock(name, RED)
  end
end