Sha256: 9e5d56244e3b4560bc4591993d69b004b6931ccfcad129d0c696e71389540be0
Contents?: true
Size: 845 Bytes
Versions: 1
Compression:
Stored size: 845 Bytes
Contents
namespace :config do task settings: 'settings:show' namespace :settings do desc 'Update the remote config/settings/<stage>.yml file with local' task :upload do invoke "config/settings/#{fetch(:stage)}.yml" end desc 'Delete remote config/settings/<stage>.yml file' task :delete do on roles(:all) do |host| within shared_path do execute :rm, '-f', "config/settings/#{fetch(:stage)}.yml" end end end desc 'Show current settings' task :show do on roles(:all) do |host| within shared_path do execute :cat, 'config/settings.yml', "config/settings/#{fetch(:stage)}.yml" end end end end end stages.each do |stage| remote_file "config/settings/#{stage}.yml" => File.join(Dir.pwd, 'config', 'settings', "#{stage}.yml") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
j-cap-recipes-0.0.11 | lib/j-cap-recipes/tasks/handy.rake |