Class: Stoplight::Admin::Actions::LockRed
- 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
Constructor Details
This class inherits a constructor from Stoplight::Admin::Actions::Action
Instance Method Details
#call(params) ⇒ void
This method returns an undefined value.
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 |