Sha256: 7eb4130b22d625ea7a9cff8033146f924ae34289b08121f632e3f18d84eb2ea8

Contents?: true

Size: 665 Bytes

Versions: 7

Compression:

Stored size: 665 Bytes

Contents

unless Bundler.locked_gems.dependencies['solidus_frontend']
  say_status :warning, "Support for frontends other than `solidus_frontend` by `solidus_paypal_commerce_platform` is still in progress.", :yellow
end

if @selected_frontend == 'classic'
  version = '< 1'
  migrations_flag = options[:migrate] ? '--auto-run-migrations' : '--skip-migrations'
else
  version = '~> 1.0'
  migrations_flag = "--migrate=#{options[:migrate]}"
end

unless Bundler.locked_gems.dependencies['solidus_paypal_commerce_platform']
  bundle_command "add solidus_paypal_commerce_platform --version='#{version}'"
end

generate "solidus_paypal_commerce_platform:install #{migrations_flag}"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_core-3.4.6 lib/generators/solidus/install/app_templates/payment_method/paypal.rb
solidus_core-3.4.5 lib/generators/solidus/install/app_templates/payment_method/paypal.rb
solidus_core-3.4.4 lib/generators/solidus/install/app_templates/payment_method/paypal.rb
solidus_core-3.4.3 lib/generators/solidus/install/app_templates/payment_method/paypal.rb
solidus_core-3.4.2 lib/generators/solidus/install/app_templates/payment_method/paypal.rb
solidus_core-3.4.1 lib/generators/solidus/install/app_templates/payment_method/paypal.rb
solidus_core-3.4.0 lib/generators/solidus/install/app_templates/payment_method/paypal.rb