class Lolipop::Mc::Starter::Rails::CheckItem::GitLog
Public Instance Methods
check()
click to toggle source
# File lib/lolipop/mc/starter/rails/check_item/git_log.rb, line 7 def check begin stdout, stderr, status = Open3.capture3("git log") rescue => e raise "まだローカルのGitリポジトリにコミットがないようです #{e.message}" end raise "まだローカルのGitリポジトリにコミットがないようです" if stdout == "" 'ローカルのGitリポジトリにコミットがあります' end
hint()
click to toggle source
# File lib/lolipop/mc/starter/rails/check_item/git_log.rb, line 17 def hint puts 'ロリポップ!マネージドクラウドのRailsプロジェクトでは `git push` をすることでマネージドクラウドにRailsアプリケーションをデプロイします' puts 'そのためにはローカルのGitリポジトリに`git commit`が必要です' puts "`git add . && git commit -m'First commit'` などを実行してコミットを作成してください" end