
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Manage and continuously rebuild your ElasticSearch indexes with Chewy and Capistrano v3.
Capistrano::Chewy
gem adds automatic conditionally reset of only modified Chewy indexes and the removal of deleted index files to your deploy flow so you do not have to do it manually.
Moreover, it adds the possibility of manual index management with the base Chewy tasks on the remote server.
Add this line to your application's Gemfile:
gem 'capistrano-chewy', require: false
or:
gem 'capistrano-chewy', require: false, group: :development
And then run bundler:
$ bundle
Or install it yourself as:
$ gem install capistrano-chewy
If you want to use the latest version from the master
, then add the following line to your Gemfile:
gem 'capistrano-chewy', git: 'https://github.com/nbulaj/capistrano-chewy.git'
Require it in your Capfile
:
# Capfile
...
require 'capistrano/chewy'
...
then you can use cap -T
to list Capistrano::Chewy
tasks:
cap chewy:rebuild # Reset modified and delete removed Chewy indexes
cap chewy:reset # Destroy, recreate and import data to all the indexes
cap chewy:reset[indexes] # Destroy, recreate and import data to the specified indexes
cap chewy:update # Updates data to all the indexes
cap chewy:update[indexes] # Updates data to the specified indexes
By default Capistrano::Chewy
adds deploy:chewy:rebuild
task after deploy:updated
and deploy:reverted
.
If you want to change it, then you need to disable default gem hooks by setting chewy_default_hooks
to false
in your deployment config and manually define the order of the tasks.
You can setup the following options:
# deploy.rb
set :chewy_conditionally_reset, false # Reset only modified Chewy indexes, true by default
set :chewy_path, 'app/my_indexes' # Path to Chewy indexes, 'app/chewy' by default
set :chewy_env, :chewy_production # Environment variable for Chewy, equal to RAILS_ENV by default
set :chewy_role, :web # Chewy role, :app by default
set :chewy_default_hooks, false # Add default gem hooks to project deploy flow, true by default
set :chewy_delete_removed_indexes, false # Delete indexes which files have been deleted, true by default
You are very welcome to help improve Capistrano:Chewy
if you have suggestions for features that other people can use or some code improvements.
To contribute:
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that capistrano-chewy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.