Module: Orly

Defined in:
lib/orly.rb,
lib/orly/tester.rb,
lib/orly/version.rb,
lib/orly/owl_printer.rb,
lib/orly/installation.rb

Defined Under Namespace

Modules: Installation, OwlPrinter Classes: NoRepo, Tester

Constant Summary collapse

VERSION =
"0.0.14"

Class Method Summary collapse

Class Method Details

.runObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/orly.rb', line 10

def self.run
  tester  = Orly::Tester.new()
  notify = []
  notify << "run 'bundle install'".red if tester.need_bundle_install?
  notify << "run 'rake db:migrate'".red if tester.need_migrate?
  notify << "run 'dotenv-sync merge'".red if tester.need_dotenv?
  notify << "run 'pod install'".blue if tester.need_pod?
  notify << "run 'bower install'".green if tester.need_bower?
  notify << "run 'npm install'".green if tester.need_npm?
  notify << "run 'yarn install'".green if tester.need_yarn?
  Orly::OwlPrinter.print(notify) unless notify.empty?
rescue Orly::NoRepo
  puts "O RLY: this is not a git repo".red
end