Sha256: a990c2652754cbad9e0b68d72f0aae1844371f05a3c3123998745d916da481bb

Contents?: true

Size: 389 Bytes

Versions: 48

Compression:

Stored size: 389 Bytes

Contents

#!/usr/bin/env ruby

# frozen_string_literal: true

app_root = 'sandbox'

unless File.exist? "#{app_root}/bin/rails"
  warn 'Creating the sandbox app...'
  Dir.chdir "#{__dir__}/.." do
    system "#{__dir__}/sandbox" or begin # rubocop:disable Style/AndOr
      warn 'Automatic creation of the sandbox app failed'
      exit 1
    end
  end
end

Dir.chdir app_root
exec 'bin/rails', *ARGV

Version data entries

48 entries across 48 versions & 15 rubygems

Version Path
solidus_social-1.6.0 bin/rails
opal-rails-2.0.3 bin/rails-sandbox
solidus_stripe-4.4.1 bin/sandbox_rails
solidus_stripe-4.4.0 bin/sandbox_rails
solidus_social-1.5.0 bin/rails
deface-1.9.0 bin/rails-sandbox
deface-1.8.2 bin/rails-sandbox
opal-rails-2.0.2 bin/rails-sandbox
solidus_stripe-4.3.0 bin/sandbox_rails
solidus_social-1.4.0 bin/rails
deface-1.8.1 bin/rails-sandbox
deface-1.8.0 bin/rails-sandbox
solidus_six_saferpay-0.5.0 bin/rails
opal-rails-2.0.1 bin/rails-sandbox
opal-rails-2.0.0 bin/rails-sandbox
deface-1.7.0 bin/rails-sandbox
deface-1.6.2 bin/rails-sandbox
deface-1.6.1 bin/rails-sandbox
deface-1.6.0 bin/rails-sandbox
solidus_webhooks-0.3.0 bin/sandbox_rails