Class: Renuo::Cli::Commands::CreateNewLogins

Inherits:
Object
  • Object
show all
Includes:
CommandHelper
Defined in:
lib/renuo/cli/commands/create_new_logins.rb

Constant Summary collapse

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"] }].freeze

Instance Method Summary collapse

Methods included from CommandHelper

#open_path, #run_command

Instance Method Details

#runObject



19
20
21
22
23
24
25
26
27
28
# File 'lib/renuo/cli/commands/create_new_logins.rb', line 19

def run
  LOGINS.each do ||
    say [:name].yellow
    [:steps].each_with_index do |step, index|
      say "\t#{index + 1}. #{step}"
    end
    open_site [:sign_up_url]
  end
  say "every thing is set up".green
end