Sha256: b8668d424e6935b926979e79b226da29e055c38a018439a6bac5abf1ebac6f13

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

namespace :victoire do
    namespace :assets do
        desc <<-DESC
            Fetch Assets
        DESC
        task :fetch do
            on roles(:app) do
                if fetch(:rollbar_token)
                    execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod victoire:ui:fetchAssets"
                endif
            end
        end
    end
end

namespace :bazinga do
    namespace :js_translation do
        desc <<-DESC
            Dumps all JS translation files to the filesystem
        DESC
        task :dump do
            on roles(:app) do
                execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod bazinga:js:dump"
            end
        end
    end
end

namespace :fos do
    namespace :js_routing do
        desc <<-DESC
            Dumps exposed routes to the filesystem
        DESC
        task :dump do
            on roles(:app) do
                execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod fos:js-routing:dump --target=web/js/fos_js_routes_prod.js"
            end
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-victoire-0.0.4 lib/capistrano/tasks/assets.rake