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

Version Path
renuo-cli-3.1.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-3.0.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-2.0.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.8.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.7.3 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.7.2 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.7.1 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.7.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.6.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.5.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.4.4 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.4.3 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.4.2 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.4.1 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.4.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.3.1 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.3.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.2.1 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.2.0 lib/renuo/cli/app/create_new_logins.rb
renuo-cli-1.1.0 lib/renuo/cli/app/create_new_logins.rb