Sha256: 86e82cf3c431abc02aef5e1c7aa63409478152e6e8f8e064fb9ed40023bdc0c4

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 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

3 entries across 3 versions & 2 rubygems

Version Path
solidus_jwt-1.2.1 bin/rails-sandbox
solidus_easypost-2.0.0 bin/rails-sandbox
solidus_jwt-1.2.0 bin/rails-sandbox