Sha256: 523e670d89672c2dd7c9f53ffaaab61aab7401dbcec8d8cda072197c07f2427d

Contents?: true

Size: 306 Bytes

Versions: 35

Compression:

Stored size: 306 Bytes

Contents

namespace :rswag do
  namespace :ui do

    desc 'TODO'
    task :copy_assets, [ :dest ] do |t, args|
      dest = args[:dest]
      FileUtils.rm_r(dest, force: true)
      FileUtils.mkdir_p(dest)
      FileUtils.cp_r(Dir.glob("#{Rswag::Ui.config.assets_root}/{*.js,*.png,*.css}"), dest)
    end
  end
end

Version data entries

35 entries across 35 versions & 4 rubygems

Version Path
rswag-ui-2.16.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.15.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.14.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.13.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.12.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.11.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.10.1 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.10.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.9.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.8.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.7.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.6.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.5.1 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.5.1.rc1 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.5.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.5.0.rc1 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.4.0 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.3.3 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.3.2 lib/tasks/rswag-ui_tasks.rake
rswag-ui-2.3.1 lib/tasks/rswag-ui_tasks.rake