Sha256: c082eb94b72ab631d34039ce5568a9cc115d551b602668b31e9ad2744e80837a
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
Capistrano::Configuration.instance(true).load do set :grunt_tasks, 'default' set :grunt_options, nil depend :remote, :command, 'grunt' namespace :grunt do desc 'Runs the Grunt tasks or the default task if none are specified in grunt_tasks.' task :default, :roles => :app, :except => { :no_release => true } do tasks = Array(grunt_tasks) tasks.each do |task| try_sudo "cd #{latest_release} && grunt #{grunt_options} #{task}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-grunt-0.0.1 | lib/capistrano/grunt.rb |