Sha256: fc14adfb0321d4ba4d18ce8756e1e744374311afe522a6f1eb192f3e84a31cf4

Contents?: true

Size: 762 Bytes

Versions: 2

Compression:

Stored size: 762 Bytes

Contents

module BinInstall
  module Rails
    def self.db_setup
      puts 'Preparing database...'.white
      system('bin/rails db:setup')
    end

    def self.db_setup!
      puts 'Preparing database...'.white
      BinInstall.system!('bin/rails db:setup')
    end

    def self.db_migrate
      puts 'Migrating database...'.white
      system('bin/rails db:migrate')
    end

    def self.db_migrate!
      puts 'Migrating database...'.white
      BinInstall.system!('bin/rails db:migrate')
    end

    def self.clear
      puts 'Removing unnecessary files...'.white
      system('bin/rails log:clear tmp:clear')
    end

    def self.clear
      puts 'Removing unnecessary files...'.white
      BinInstall.system!('bin/rails log:clear tmp:clear')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bin_install-0.0.4 lib/bin_install/rails.rb
bin_install-0.0.3 lib/bin_install/rails.rb