Sha256: cd28e87f397e238ca09afdccc9810257e757cafe7574c274549b8302cddb7e4e
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 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: :delete 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 current_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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
j-cap-recipes-0.0.14 | lib/j-cap-recipes/tasks/handy.rake |
j-cap-recipes-0.0.13 | lib/j-cap-recipes/tasks/handy.rake |
j-cap-recipes-0.0.12 | lib/j-cap-recipes/tasks/handy.rake |