Sha256: 6927caaade2b7e5cd9ccaa2fb8eda6cb3acb1a5824fb24083c194964cee8502f

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

#!/usr/bin/env ruby

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

5 entries across 5 versions & 4 rubygems

Version Path
solidus_content-0.1.0 bin/rails-sandbox
solidus_importer-0.1.0 bin/rails-sandbox
solidus_dev_support-1.5.0 lib/solidus_dev_support/templates/extension/bin/rails-sandbox
solidus_static_content-2.0.0 bin/rails-sandbox
solidus_dev_support-1.4.0 lib/solidus_dev_support/templates/extension/bin/rails-sandbox