Sha256: a5fdb569b462b7765dec779bef0e4bf79e7754e3cb8c635f01947e9fe668ffc5

Contents?: true

Size: 817 Bytes

Versions: 5

Compression:

Stored size: 817 Bytes

Contents

namespace :forkcms do
  namespace :configure do
    desc <<-DESC
      Configures composer
      It make sure the command is mapped correctly and the correct flags are used.
    DESC
    task :composer do
      # Set the correct composer flags
      set :composer_install_flags, '--no-dev --no-interaction --quiet --optimize-autoloader --no-scripts'

      # Set the correct bin
      SSHKit.config.command_map[:composer] = "#{fetch :php_bin_path} #{fetch :deploy_to}/shared/composer.phar"
    end

    desc <<-DESC
      Configures cachetool
      It make sure the command is mapped correctly and the correct flags are used.
    DESC
    task :cachetool do
      # Set the correct bin
      SSHKit.config.command_map[:cachetool] = "#{fetch :php_bin_path} #{fetch :deploy_to}/shared/cachetool.phar"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capistrano-forkcms-3.2.1 lib/capistrano/tasks/configure.rake
capistrano-forkcms-3.2.0 lib/capistrano/tasks/configure.rake
capistrano-forkcms-3.1.2 lib/capistrano/tasks/configure.rake
capistrano-forkcms-3.1.0 lib/capistrano/tasks/configure.rake
capistrano-forkcms-3.0.0 lib/capistrano/tasks/configure.rake