Sha256: 5d851b0fca26916dc16e26ef0793823c14ec90e0f810ad3578241a55e5d4c089

Contents?: true

Size: 676 Bytes

Versions: 34

Compression:

Stored size: 676 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  define_recipe :sinatra_passenger do
    use_recipe :passenger
    
    namespace :sinatra_passenger do
      desc "Set file permissions"
      task :chmod_directories_config do
        run "cd #{release_path} && find -maxdepth 1 -type d -exec chmod 755 {} \\;"
      end

      desc "Set public folder permissions"
      task :chmod_directories_public do
        run "cd #{release_path}/public && find -type d -exec chmod 755 {} \\;"
      end
    end

    after "deploy:update_code", "sinatra_passenger:chmod_directories_config"
    after "deploy:update_code", "sinatra_passenger:chmod_directories_public"
  end

end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
factorylabs-fdlcap-0.3.16 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.17 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.18 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.19 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.20 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.21 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.23 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.24 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.25 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.26 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.27 lib/fdlcap/recipes/sinatra_passenger.rb
factorylabs-fdlcap-0.3.28 lib/fdlcap/recipes/sinatra_passenger.rb
fdlcap-0.4.17 lib/fdlcap/recipes/sinatra_passenger.rb
fdlcap-0.4.15 lib/fdlcap/recipes/sinatra_passenger.rb
fdlcap-0.4.14 lib/fdlcap/recipes/sinatra_passenger.rb
fdlcap-0.4.13 lib/fdlcap/recipes/sinatra_passenger.rb
fdlcap-0.4.12 lib/fdlcap/recipes/sinatra_passenger.rb
fdlcap-0.4.11 lib/fdlcap/recipes/sinatra_passenger.rb
fdlcap-0.4.10 lib/fdlcap/recipes/sinatra_passenger.rb
fdlcap-0.4.9 lib/fdlcap/recipes/sinatra_passenger.rb