Sha256: 647e0f79ba920041f1cdee997b22a31cd26d82295953e1dd093d2e4389242c76

Contents?: true

Size: 511 Bytes

Versions: 3

Compression:

Stored size: 511 Bytes

Contents

module SpreeSkrill
  module Generators
    class InstallGenerator < Rails::Generators::Base
      def add_migrations
        run 'bundle exec rake railties:install:migrations FROM=spree_skrill'
      end

      def run_migrations
         res = ask "Would you like to run the migrations now? [Y/n]"
         if res == "" || res.downcase == "y"
           run 'bundle exec rake db:migrate'
         else
           puts "Skiping rake db:migrate, don't forget to run it!"
         end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_skrill-1.0.2 lib/generators/spree_skrill/install/install_generator.rb
spree_skrill-1.0.1 lib/generators/spree_skrill/install/install_generator.rb
spree_skrill-1.0.0 lib/generators/spree_skrill/install/install_generator.rb