class Lolipop::Mc::Starter::Rails::CheckItem::GitRemote

Public Instance Methods

check() click to toggle source
# File lib/lolipop/mc/starter/rails/check_item/git_remote.rb, line 7
def check
  begin
    stdout, stderr, status = Open3.capture3("git remote")
  rescue => e
    raise "Gitコマンドがみつかりません #{e.message}"
  end
  raise "リモートリポジトリ `lolipop` がないようです #{stdout.strip}" unless stdout.match(/lolipop/)
  'リモートリポジトリ `lolipop` が設定されています'
end
hint() click to toggle source
# File lib/lolipop/mc/starter/rails/check_item/git_remote.rb, line 17
def hint
  puts 'マネージドクラウドにデプロイするためにマネージドクラウド側のGitリポジトリをリモートリポジトリとして登録する必要があります'
  puts 'マネージドクラウドのプロジェクト詳細に `リポジトリ` にコマンドの記載があります'
  puts '例: `git remote add lolipop ssh://dreamy-kanoya-1234@ssh-1.mc.lolipop.jp:123456/`'
end