Sha256: 24cb8ce8379122fa115cf7e29b3e19f73d7c8e9c0a69a34024c7d476a1da76ff
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
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 = [] mix_commands = [] 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? mix_commands << 'deps.get' if tester.need_mix? mix_commands << 'ecto.migrate' if tester.need_ecto_migrate? mix_commands << 'ecto.seed' if tester.need_ecto_seed? if mix_commands.length == 1 notify << "run 'mix #{mix_commands.join}'".magenta elsif mix_commands.length > 1 notify << "run 'mix do #{mix_commands.join(',')}'".magenta end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
orly-0.0.15 | lib/orly.rb |