`
yang_kunlun
  • 浏览: 77210 次
  • 性别: Icon_minigender_1
  • 来自: 地球
最近访客 更多访客>>
社区版块
存档分类
最新评论

copy files from original dir to other dir

    博客分类:
  • ROR
阅读更多
namespace :ae do
  desc "Copies the ActiveExt javascripts, images and css to public.  HINT: use rake ae:symlink if you are unix based systems"

  task :copy_assets do
    puts "1. Creating /public/assets/activeext if it doesn't exist"
    FileUtils.mkdir_p(RAILS_ROOT + '/public/assets/activeext')

    ae_public_directory = RAILS_ROOT + '/public/assets/activeext'
    ae_plugin_dir = File.join(File.dirname(__FILE__), '..')
    ae_vendor_assets_files = Dir[ae_plugin_dir + '/public/assets/activeext/*']

    puts "2. Copying JS, CSS and images to " + ae_public_directory
    FileUtils.cp_r(ae_vendor_assets_files, ae_public_directory)

    puts "3. Creating a /config/activeext directory if it doesn't exist"
    FileUtils.mkdir_p(RAILS_ROOT + '/config/activeext')
  end
end
分享到:
评论

相关推荐

    apktool documentation

    -p, --frame-path <dir> - Store framework files into <dir> -t, --tag <tag> - Tag frameworks using Allow for a finer control over how the files are named and how they are stored. $ apktool if ...

    Turbo C 2.00[DISK]

    from your current TC.EXE will be transferred to the new one. This is especially useful if you have modified the colors or editor keys. 3. Floppy Disk - This option will build either a command ...

    PEiD0.95.zip

    Double click to follow JMPs and CALLs and use the Back button to trace back to the original positions. You can copy disassembled output to the clipboard. A new CADT core with custom String Reference ...

    Turbo C 2.01[DISK]

    from your current TC.EXE will be transferred to the new one. This is especially useful if you have modified the colors or editor keys. 3. Floppy Disk - This option will build either a command ...

    au3反编译源码

    To run myAutToExe from other tools these options maybe helpful options: /q will quit myAutToExe when it is finished /s [required /q to be enable] RunSilent will completly hide myAutToExe The ...

    HAPEiD_jb51

    Double click to follow JMPs and CALLs and use the Back button to trace back to the original positions. You can copy disassembled output to the clipboard. A new CADT core with custom String Reference ...

    HA.PEiD.0.95

    Double click to follow JMPs and CALLs and use the Back button to trace back to the original positions. You can copy disassembled output to the clipboard. A new CADT core with custom String Reference ...

    php.ini-development

    PHP attempts to find and load this configuration from a number of locations. ; The following is a summary of its search order: ; 1. SAPI module specific location. ; 2. The PHPRC environment variable....

    带注释的Bootstrap.java

    * other classes they depend on, such as an XML parser) out of the system * class path and therefore not visible to application level classes. * * @author Craig R. McClanahan * @author Remy ...

Global site tag (gtag.js) - Google Analytics