-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove flipper api until we can put it behind auth
- Add cap tasks to enable / disable banner
- Loading branch information
Showing
5 changed files
with
33 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'flipper' | ||
|
||
namespace :banner do | ||
desc 'Enable banner' | ||
task :enable do | ||
on roles(:db) do | ||
within '/opt/allsearch_api/current' do | ||
execute :bundle, :exec, :flipper, :enable, :banner | ||
end | ||
end | ||
run_locally { puts('The banner is now enabled and should display.') } | ||
end | ||
|
||
desc 'Disable banner' | ||
task :disable do | ||
on roles(:db) do | ||
within '/opt/allsearch_api/current' do | ||
execute :bundle, :exec, :flipper, :disable, :banner | ||
end | ||
end | ||
run_locally { puts('The banner is now disabled and should not display.') } | ||
end | ||
end |