Sha256: 26de88ad96519ebf2bce66e6bcce79fe1002f19b8fc966e2c218f5f66829f1a0
Contents?: true
Size: 787 Bytes
Versions: 2
Compression:
Stored size: 787 Bytes
Contents
require 'rubygems' module MakeItSo module Rails class PrerequisiteCheck include Thor::Base include Thor::Actions def check say "Checking Rails version...", :yellow begin require "rails" puts ::Rails.version if ::Rails.version != MakeItSo::Rails::VERSION say "Rails versions check FAILED - execute the following", :red say "gem uninstall rails railties activejob actionmailer -a && gem install rails -v #{MakeItSo::Rails::VERSION}" return false else say "Rails version MATCH", :green return true end rescue LoadError => e say "Rails not installed", :red return false end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
make_it_so-0.6.0 | lib/make_it_so/rails/prerequisite_check.rb |
make_it_so-0.5.1 | lib/make_it_so/rails/prerequisite_check.rb |