Sha256: 56bb0f6fe9c0f6899063de1212003adce0bae825ed2288db8e4a5eed5284db8a

Contents?: true

Size: 753 Bytes

Versions: 1

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 #{release_path}"
    end
    
    #
    # Callbacks
    #
    after "deploy:symlink_configs", "ruby_inline"
    after "deploy:symlink",         "chmod_release_path"
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fdlcap-0.4.14 lib/fdlcap/recipes/ruby_inline.rb