Sha256: 91c47bb6d8089fbcdd83d19b611d48bb5128c6631ae3932aac0a9cff59bbf91d

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 Bytes

Contents

desc "ssh to the current directory on the server"
task :update_global_strscan do
  on roles(:app) do |host|
    strscan_version = within release_path do
      capture(:bundle, 'exec', 'ruby', '-e', '"puts Gem::Specification.find_by_name(\'strscan\').version"', ' || true')
    end

    if strscan_version.empty?
      warn 'strscan is not installed'
    else
      execute "gem install strscan --silent --no-document -v #{strscan_version}"
    end
  end
end

if Rake::Task.task_defined? :'passenger:restart'
  before :'passenger:restart', :update_global_strscan
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dlss-capistrano-4.2.1 lib/dlss/capistrano/tasks/strscan.rake