Sha256: f4659cb6e11f8086f2b1beb9f9ec595e388ebec92cda20b6ba2c3387b133df77

Contents?: true

Size: 525 Bytes

Versions: 22

Compression:

Stored size: 525 Bytes

Contents

module SpreeGateway
  module Generators
    class InstallGenerator < Rails::Generators::Base
      class_option :migrate, type: :boolean, default: true, banner: 'Migrate the database'

      def add_migrations
        run 'bundle exec rake railties:install:migrations FROM=spree_gateway'
      end

      def run_migrations
       if options[:migrate]
         run 'bundle exec rake db:migrate VERBOSE=false'
       else
         puts "Skiping rake db:migrate, don't forget to run it!"
       end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
spree_gateway-3.11.0 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.10.0 lib/generators/spree_gateway/install/install_generator.rb
archetype_spree_gateway-3.9.5.1 lib/generators/spree_gateway/install/install_generator.rb
archetype_spree_gateway-3.9.5 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.9.4 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.9.3 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.9.2 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.9.0 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.8.0 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.7.5 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.7.4 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.7.3 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.7.2 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.7.1 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.7.0 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.6.7 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.6.5 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.6.4 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.6.1 lib/generators/spree_gateway/install/install_generator.rb
spree_gateway-3.6.0 lib/generators/spree_gateway/install/install_generator.rb