Sha256: fbb5f83b1e578c5c9e63207b2944bee51a5933730d6fbda15d2ea6cf7f7757bd

Contents?: true

Size: 223 Bytes

Versions: 21

Compression:

Stored size: 223 Bytes

Contents

namespace :cf do
  desc "Only run on the first application instance"
  task :on_first_instance do
    instance_index = Integer(ENV["CF_INSTANCE_INDEX"])
    exit(0) unless instance_index == 0
  rescue
    exit(0)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rails_template_18f-2.0.0 templates/lib/tasks/cf.rake
rails_template_18f-1.3.0 templates/lib/tasks/cf.rake
rails_template_18f-1.2.0 templates/lib/tasks/cf.rake
rails_template_18f-1.1.0 templates/lib/tasks/cf.rake
rails_template_18f-1.0.0 templates/lib/tasks/cf.rake
rails_template_18f-0.8.2 templates/lib/tasks/cf.rake
rails_template_18f-0.8.1 templates/lib/tasks/cf.rake
rails_template_18f-0.8.0 templates/lib/tasks/cf.rake
rails_template_18f-0.7.2 templates/lib/tasks/cf.rake
rails_template_18f-0.7.1 templates/lib/tasks/cf.rake
rails_template_18f-0.7.0 templates/lib/tasks/cf.rake
rails_template_18f-0.6.0 templates/lib/tasks/cf.rake
rails_template_18f-0.5.3 templates/lib/tasks/cf.rake
rails_template_18f-0.5.2 templates/lib/tasks/cf.rake
rails_template_18f-0.5.1 templates/lib/tasks/cf.rake
rails_template_18f-0.5.0 templates/lib/tasks/cf.rake
rails_template_18f-0.4.1 templates/lib/tasks/cf.rake
rails_template_18f-0.4.0 templates/lib/tasks/cf.rake
rails_template_18f-0.3.0 templates/lib/tasks/cf.rake
rails_template_18f-0.2.0 templates/lib/tasks/cf.rake