Sha256: d006ecbbea611ab98205fccdd89b4b38bcf356ccdb5f9b26ba28f490cd619917
Contents?: true
Size: 826 Bytes
Versions: 25
Compression:
Stored size: 826 Bytes
Contents
class CreateNewLogins include RunCommand @logins = [{ name: 'Sentry', sign_up_url: 'https://sentry.io/organizations/renuo/members/new/', steps: ['Click on add new Member'] }, { name: 'NewRelic', sign_up_url: 'https://rpm.newrelic.com/', steps: ['Click on Renuo', 'Account Settings > Add user'] }] def run @logins.each do |login| say login[:name].yellow login[:steps].each_with_index do |step, index| say "\t#{index + 1}. #{step}" end open_site login[:sign_up_url] end say 'every thing is set up'.green end private def open_site(website) say website.blue system "open '#{website}'" wait_to_continue end def wait_to_continue system "read -n 1 -s -p 'Press any key to continue...'" say "\n" end end
Version data entries
25 entries across 25 versions & 1 rubygems