Sha256: fc63bfe22dea72985a41ec8d0c7a7bba5478eb77f5c2afb063edcd622194c5a6

Contents?: true

Size: 797 Bytes

Versions: 2

Compression:

Stored size: 797 Bytes

Contents

require 'orly/installation'
require 'orly/tester'
require 'orly/owl_printer'
require 'orly/version'
require "choice"
require "colored"

module Orly

  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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
orly-0.0.14 lib/orly.rb
orly-0.0.13 lib/orly.rb