Sha256: 6b16ec0218cc842fc0253e5d2cd7a20aac011a800e079600436db1ee83880748

Contents?: true

Size: 753 Bytes

Versions: 2

Compression:

Stored size: 753 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  define_recipe :ruby_inline do
    
    #
    # Tasks
    #
    task :ruby_inline, :roles => :app, :except => {:no_release => true, :no_symlink => true} do
      run "mkdir -p #{release_path}/tmp/ruby_inline/.ruby_inline"
      run "chmod -R 755 #{release_path}/tmp/ruby_inline/"
    end
    
    # todo - revisit this, currently a hack to temporarily fix an issue with sphinx and ruby_inline
    task :chmod_release_path, :roles => :app, :except => {:no_release => true, :no_symlink => true} do
      run "chmod 755 #{current_path}"
    end
    
    #
    # Callbacks
    #
    after "deploy:symlink_configs", "ruby_inline"
    after "deploy:symlink",         "chmod_release_path"
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fdlcap-0.4.17 lib/fdlcap/recipes/ruby_inline.rb
fdlcap-0.4.15 lib/fdlcap/recipes/ruby_inline.rb