renuo-cli 2.0.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.ruby-version +1 -1
- data/lib/renuo/cli/app/command_helper.rb +18 -0
- data/lib/renuo/cli/app/configure_semaphore.rb +2 -2
- data/lib/renuo/cli/app/create_aws_project.rb +3 -3
- data/lib/renuo/cli/app/create_heroku_app.rb +4 -7
- data/lib/renuo/cli/app/create_new_logins.rb +2 -3
- data/lib/renuo/cli/app/environments.rb +2 -1
- data/lib/renuo/cli/app/name_display.rb +21 -5
- data/lib/renuo/cli/app/release_project.rb +28 -17
- data/lib/renuo/cli/app/templates/semaphore/bin/cache_restore.erb +10 -10
- data/lib/renuo/cli/app/templates/semaphore/bin/cache_store.erb +1 -1
- data/lib/renuo/cli/app/templates/semaphore/semaphore-deploy.yml.erb +2 -1
- data/lib/renuo/cli/app/templates/semaphore/semaphore.yml.erb +22 -6
- data/lib/renuo/cli/app/upgrade_laptop/upgrade_laptop_execution.rb +1 -1
- data/lib/renuo/cli/app/upgrade_laptop/upgrade_mac_os.rb +1 -1
- data/lib/renuo/cli/app/upgrade_laptop.rb +1 -1
- data/lib/renuo/cli/version.rb +1 -1
- data/lib/renuo/cli.rb +7 -5
- data/renuo-cli.gemspec +1 -0
- metadata +18 -4
- data/lib/renuo/cli/app/upgrade_laptop/run_command.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c63f2b385a0924947d1b2a9379a836576b8d28c22a56aab71a8b8c5b7e912a59
|
4
|
+
data.tar.gz: 9f518b1bf101f4a65b93db3a595f5afbc2e1d94389a454511e5c6a4db1bc69d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 920b11fcc5d8135ac1e443916a7453f3317bf9b834438eb7d2c4c0031917250ad525b657cb6cb45b01ca92e4bb287186e34ad44fc7275d47947de590db2b3aeb
|
7
|
+
data.tar.gz: b555c4b20295c9094a43635868ff090f0ca63f50804985a0e2744892d0e51d7e9a2973e6a8e7a5ea735569c6b93f7585537c9c9bfda10d215a58d98a115ae3e0
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.5
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module CommandHelper
|
2
|
+
def run_command(command)
|
3
|
+
say "\n#{command.yellow}"
|
4
|
+
system command
|
5
|
+
end
|
6
|
+
|
7
|
+
def open_path(path)
|
8
|
+
system_command = case RbConfig::CONFIG['host_os']
|
9
|
+
when /mswin|mingw|cygwin/
|
10
|
+
'start'
|
11
|
+
when /darwin/
|
12
|
+
'open'
|
13
|
+
when /linux|bsd/
|
14
|
+
'xdg-open'
|
15
|
+
end
|
16
|
+
run_command "#{system_command} #{path}"
|
17
|
+
end
|
18
|
+
end
|
@@ -15,7 +15,7 @@ class ConfigureSemaphore
|
|
15
15
|
FileUtils.mkdir_p(%w[.semaphore .semaphore/bin])
|
16
16
|
|
17
17
|
write_or_warn('.semaphore/semaphore.yml', render('templates/semaphore/semaphore.yml.erb'))
|
18
|
-
%w[
|
18
|
+
%w[main develop testing].each do |environment|
|
19
19
|
@environment = environment
|
20
20
|
write_or_warn(".semaphore/#{environment}-deploy.yml", render('templates/semaphore/semaphore-deploy.yml.erb'))
|
21
21
|
end
|
@@ -38,7 +38,7 @@ class ConfigureSemaphore
|
|
38
38
|
def create_semaphore_notification
|
39
39
|
system("sem create notifications #{project_name} "\
|
40
40
|
"--projects #{project_name} "\
|
41
|
-
'--branches "
|
41
|
+
'--branches "main,develop,testing" '\
|
42
42
|
"--slack-channels \"#project-#{project_name}\" "\
|
43
43
|
'--slack-endpoint "https://hooks.slack.com/services/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"')
|
44
44
|
end
|
@@ -8,7 +8,7 @@ class CreateAwsProject
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def run
|
11
|
-
%w[
|
11
|
+
%w[main develop testing].each do |branch|
|
12
12
|
print_setup_commands branch
|
13
13
|
end
|
14
14
|
end
|
@@ -46,7 +46,7 @@ class CreateAwsProject
|
|
46
46
|
@cloudfront_alias = {}
|
47
47
|
return unless agree('Would you like to use an alias to call your assets/images on S3? (Default: no)')
|
48
48
|
|
49
|
-
%i[
|
49
|
+
%i[main develop testing].each do |branch|
|
50
50
|
cloudfront_alias_for branch
|
51
51
|
end
|
52
52
|
end
|
@@ -78,7 +78,7 @@ class CreateAwsProject
|
|
78
78
|
$terminal.wrap_at = nil if $terminal
|
79
79
|
puts aws_iam_setup(@aws_profile, aws_user(branch), @aws_app_group)
|
80
80
|
puts aws_s3_setup(@aws_profile, aws_user(branch), @aws_region, @redmine_project)
|
81
|
-
puts aws_s3_versioning_setup(@aws_profile, aws_user(branch)) if branch == '
|
81
|
+
puts aws_s3_versioning_setup(@aws_profile, aws_user(branch)) if branch == 'main'
|
82
82
|
cloudfront_setup(aws_user(branch), branch)
|
83
83
|
$terminal.wrap_at = :auto if $terminal
|
84
84
|
end
|
@@ -1,15 +1,11 @@
|
|
1
|
-
require 'commander'
|
2
|
-
require_relative './environments'
|
3
|
-
require_relative './fetch_emails'
|
4
|
-
|
5
1
|
class CreateHerokuApp
|
6
2
|
ADMIN_EMAIL = 'admin@renuo.ch'.freeze
|
7
3
|
|
8
4
|
def initialize; end
|
9
5
|
|
10
|
-
def run(args)
|
6
|
+
def run(*args)
|
11
7
|
project_name = args[0]
|
12
|
-
abort('>>
|
8
|
+
abort('>> Project name must be between 2 and 22 characters.') unless project_name&.length&.between?(2, 22)
|
13
9
|
emails = FetchEmails.new.fetch_emails
|
14
10
|
|
15
11
|
say "# Commands to setup your Heroku application\n".colorize :green
|
@@ -25,6 +21,7 @@ class CreateHerokuApp
|
|
25
21
|
heroku_name = "#{project_name}-#{env}"
|
26
22
|
say "heroku apps:create --region eu #{heroku_name}"
|
27
23
|
say "heroku domains:add #{heroku_name}.renuoapp.ch --app #{heroku_name}"
|
24
|
+
say "heroku domains:add #{project_name}-#{MASTER}.renuoapp.ch --app #{heroku_name}" if env == MAIN
|
28
25
|
say "heroku addons:create heroku-postgresql --app #{heroku_name}"
|
29
26
|
say "heroku addons:create papertrail --app #{heroku_name}"
|
30
27
|
say "heroku labs:enable runtime-dyno-metadata --app #{heroku_name}"
|
@@ -33,7 +30,7 @@ class CreateHerokuApp
|
|
33
30
|
end
|
34
31
|
|
35
32
|
def print_pipelines_commands(project_name)
|
36
|
-
say "heroku pipelines:create #{project_name} --app #{project_name}-#{
|
33
|
+
say "heroku pipelines:create #{project_name} --app #{project_name}-#{MAIN} -s production"
|
37
34
|
say "heroku pipelines:add #{project_name} --app #{project_name}-#{DEVELOP} -s staging"
|
38
35
|
say "heroku pipelines:add #{project_name} --app #{project_name}-#{TESTING} -s staging"
|
39
36
|
say "\n"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class CreateNewLogins
|
2
|
-
include
|
2
|
+
include CommandHelper
|
3
3
|
|
4
4
|
@logins = [{ name: 'Sentry', sign_up_url: 'https://sentry.io/organizations/renuo/members/new/',
|
5
5
|
steps: ['Click on add new Member'] },
|
@@ -20,8 +20,7 @@ class CreateNewLogins
|
|
20
20
|
private
|
21
21
|
|
22
22
|
def open_site(website)
|
23
|
-
|
24
|
-
system "open '#{website}'"
|
23
|
+
open_path(website)
|
25
24
|
wait_to_continue
|
26
25
|
end
|
27
26
|
|
@@ -1,17 +1,33 @@
|
|
1
|
+
require_relative 'command_helper'
|
2
|
+
|
1
3
|
class NameDisplay
|
4
|
+
include CommandHelper
|
5
|
+
|
2
6
|
def run(args, options)
|
3
|
-
return
|
7
|
+
return open_path(SLIDES) if options.monitor
|
8
|
+
return display_name(nil) if options.delete
|
9
|
+
return say('empty argument') if args.empty?
|
4
10
|
|
5
|
-
return
|
11
|
+
return run_heroku_command(args.join(' ')) if options.override
|
6
12
|
|
7
13
|
display_name(args.join(' '))
|
8
14
|
end
|
9
15
|
|
16
|
+
private
|
17
|
+
|
18
|
+
HEROKU_APP_NAME = '-a renuo-dashboard-master'.freeze
|
19
|
+
HEROKU_CLI = 'heroku run'.freeze
|
20
|
+
RENUO_CLI = 'rails renuo:welcome'.freeze
|
21
|
+
SLIDES = 'https://docs.google.com/presentation/d/1mPhQjArZnlUWUa2ik5R9IlGmdCKCwc2_H8Qq-AWgV-A/edit'.freeze
|
22
|
+
WELCOME_MESSAGE = 'Welcome to Renuo'.freeze
|
23
|
+
|
10
24
|
def display_name(name)
|
11
|
-
|
25
|
+
text_message = [WELCOME_MESSAGE, name, '🥳🔥'].compact.join(' ')
|
26
|
+
run_heroku_command(text_message)
|
12
27
|
end
|
13
28
|
|
14
|
-
def
|
15
|
-
|
29
|
+
def run_heroku_command(text_message)
|
30
|
+
rails_command = "\"#{RENUO_CLI}['#{text_message}']\""
|
31
|
+
run_command([HEROKU_CLI, rails_command, HEROKU_APP_NAME].join(' '))
|
16
32
|
end
|
17
33
|
end
|
@@ -1,15 +1,18 @@
|
|
1
|
+
require_relative 'command_helper'
|
2
|
+
|
1
3
|
class ReleaseProject
|
4
|
+
include CommandHelper
|
5
|
+
|
2
6
|
UPDATE_TYPES = %w[major minor patch custom].freeze
|
3
7
|
TMP_FOLDER_NAME = "_RENUO_RELEASE_TEMP_#{rand(100_000_000)}".freeze
|
4
8
|
MOVE_TO_TMP_FOLDER = "mkdir -p #{TMP_FOLDER_NAME} && cd #{TMP_FOLDER_NAME}".freeze
|
5
9
|
|
6
10
|
def run(args)
|
7
11
|
@project_name, @update_type, @version = args
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
checkout_project
|
12
|
+
validate_args
|
13
|
+
open_comparison_page
|
14
|
+
checkout_project # in the meantime
|
15
|
+
veto_comparison
|
13
16
|
@version ||= calculate_version
|
14
17
|
release
|
15
18
|
ensure
|
@@ -18,6 +21,12 @@ class ReleaseProject
|
|
18
21
|
|
19
22
|
private
|
20
23
|
|
24
|
+
def validate_args
|
25
|
+
validate_project_name
|
26
|
+
validate_update_type
|
27
|
+
validate_custom_version_format
|
28
|
+
end
|
29
|
+
|
21
30
|
def validate_project_name
|
22
31
|
abort('>> No project name given.') unless @project_name
|
23
32
|
end
|
@@ -49,22 +58,20 @@ class ReleaseProject
|
|
49
58
|
abort('>> Invalid Version Number. Use format X.Y.Z for your version.')
|
50
59
|
end
|
51
60
|
|
52
|
-
def
|
53
|
-
|
54
|
-
open_comparison_page
|
55
|
-
abort unless agree('Are you fine with those changes?')
|
61
|
+
def veto_comparison
|
62
|
+
abort unless agree('Are you fine with the changes you just reviewed in your browser?')
|
56
63
|
end
|
57
64
|
|
58
65
|
def open_comparison_page
|
59
|
-
|
66
|
+
puts 'Opening browser to double-check what is going to be deployed…'
|
67
|
+
open_path "https://github.com/#{@project_name}/compare/#{main_branch}...develop"
|
60
68
|
end
|
61
69
|
|
62
70
|
def checkout_project
|
63
|
-
unless system("#{MOVE_TO_TMP_FOLDER} && gh repo clone #{@project_name}
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
end
|
71
|
+
abort('>> Project not found on Github.') unless system("#{MOVE_TO_TMP_FOLDER} && gh repo clone #{@project_name}")
|
72
|
+
|
73
|
+
system(cmd_in_folder("git checkout #{main_branch} && git pull origin #{main_branch} &&" \
|
74
|
+
'git checkout develop && git pull origin develop && git flow init -d'))
|
68
75
|
end
|
69
76
|
|
70
77
|
def calculate_version
|
@@ -78,7 +85,7 @@ class ReleaseProject
|
|
78
85
|
if finish_release_branch
|
79
86
|
puts ">> Project successfully released with version #{@version}."
|
80
87
|
else
|
81
|
-
abort(
|
88
|
+
abort(">> Unable to finish release and push to #{main_branch}. Cancelling release.")
|
82
89
|
end
|
83
90
|
end
|
84
91
|
|
@@ -135,7 +142,7 @@ class ReleaseProject
|
|
135
142
|
def finish_release_branch
|
136
143
|
system(cmd_in_folder("GIT_MERGE_AUTOEDIT=no git flow release finish -m #{@version} #{@version} && " \
|
137
144
|
'git checkout develop && git push origin develop && ' \
|
138
|
-
|
145
|
+
"git checkout #{main_branch} && git push origin #{main_branch} --tags"))
|
139
146
|
end
|
140
147
|
|
141
148
|
def ask_for_final_confirmation
|
@@ -167,4 +174,8 @@ class ReleaseProject
|
|
167
174
|
def cleanup
|
168
175
|
system("rm -rf #{TMP_FOLDER_NAME}")
|
169
176
|
end
|
177
|
+
|
178
|
+
def main_branch
|
179
|
+
@main_branch ||= system(cmd_in_folder('git checkout main && git show-ref refs/heads/main')) ? 'main' : 'master'
|
180
|
+
end
|
170
181
|
end
|
@@ -5,22 +5,22 @@ do
|
|
5
5
|
case $cache_group in
|
6
6
|
|
7
7
|
rails)
|
8
|
-
cache restore nvm-$SEMAPHORE_GIT_BRANCH-$(checksum .nvmrc),nvm-$SEMAPHORE_GIT_BRANCH,nvm-develop
|
9
|
-
cache restore gems-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock),gems-$
|
10
|
-
cache restore yarn-cache-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),yarn-cache-$SEMAPHORE_GIT_BRANCH,yarn-cache-develop
|
11
|
-
cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules-develop
|
8
|
+
cache restore nvm-$SEMAPHORE_GIT_BRANCH-$(checksum .nvmrc),nvm-$SEMAPHORE_GIT_BRANCH,nvm-develop
|
9
|
+
cache restore gems-$SEMAPHORE_GIT_BRANCH-$(checksum .ruby-version)-$(checksum Gemfile.lock),gems-develop-$(checksum .ruby-version)-$(checksum Gemfile.lock),gems-develop-$(checksum .ruby-version)
|
10
|
+
cache restore yarn-cache-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),yarn-cache-$SEMAPHORE_GIT_BRANCH,yarn-cache-develop
|
11
|
+
cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules-develop
|
12
12
|
;;
|
13
13
|
|
14
14
|
python)
|
15
|
-
cache restore requirements-$SEMAPHORE_GIT_BRANCH-$(checksum requirements.txt),requirements-$SEMAPHORE_GIT_BRANCH,requirements-develop
|
15
|
+
cache restore requirements-$SEMAPHORE_GIT_BRANCH-$(checksum requirements.txt),requirements-$SEMAPHORE_GIT_BRANCH,requirements-develop
|
16
16
|
;;
|
17
17
|
|
18
18
|
assets)
|
19
|
-
cache restore packs-$SEMAPHORE_GIT_BRANCH,packs-develop
|
20
|
-
cache restore packstest-$SEMAPHORE_GIT_BRANCH,packstest-develop
|
21
|
-
cache restore assets-$SEMAPHORE_GIT_BRANCH,assets-develop
|
22
|
-
cache restore sprocketscache-$SEMAPHORE_GIT_BRANCH,sprocketscache-develop
|
23
|
-
cache restore webpackercache-$SEMAPHORE_GIT_BRANCH,webpackercache-develop
|
19
|
+
cache restore packs-$SEMAPHORE_GIT_BRANCH,packs-develop
|
20
|
+
cache restore packstest-$SEMAPHORE_GIT_BRANCH,packstest-develop
|
21
|
+
cache restore assets-$SEMAPHORE_GIT_BRANCH,assets-develop
|
22
|
+
cache restore sprocketscache-$SEMAPHORE_GIT_BRANCH,sprocketscache-develop
|
23
|
+
cache restore webpackercache-$SEMAPHORE_GIT_BRANCH,webpackercache-develop
|
24
24
|
;;
|
25
25
|
|
26
26
|
*)
|
@@ -6,7 +6,7 @@ do
|
|
6
6
|
|
7
7
|
rails)
|
8
8
|
cache store nvm-$SEMAPHORE_GIT_BRANCH-$(checksum .nvmrc) $HOME/.nvm
|
9
|
-
cache store gems-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock) vendor/bundle
|
9
|
+
cache store gems-$SEMAPHORE_GIT_BRANCH-$(checksum .ruby-version)-$(checksum Gemfile.lock) vendor/bundle
|
10
10
|
cache store yarn-cache-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) $HOME/.cache/yarn
|
11
11
|
cache store node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) node_modules
|
12
12
|
;;
|
@@ -22,5 +22,6 @@ blocks:
|
|
22
22
|
- ssh-add ~/.ssh/id_rsa_semaphore_heroku
|
23
23
|
- git config --global url.ssh://git@heroku.com/.insteadOf https://git.heroku.com/
|
24
24
|
- git remote add heroku $HEROKU_REMOTE
|
25
|
-
- git push heroku -f $SEMAPHORE_GIT_BRANCH:
|
25
|
+
- git push heroku -f $SEMAPHORE_GIT_BRANCH:main
|
26
26
|
- heroku run -x rails db:migrate
|
27
|
+
- heroku dyno:restart
|
@@ -9,7 +9,7 @@ auto_cancel:
|
|
9
9
|
when: "true"
|
10
10
|
fail_fast:
|
11
11
|
cancel:
|
12
|
-
when: "branch != '
|
12
|
+
when: "branch != 'main'"
|
13
13
|
|
14
14
|
blocks:
|
15
15
|
- name: cache
|
@@ -23,6 +23,7 @@ blocks:
|
|
23
23
|
- name: cache
|
24
24
|
commands:
|
25
25
|
- checkout --use-cache
|
26
|
+
- gem update --system --no-document
|
26
27
|
- source .semaphore/bin/cache_restore rails
|
27
28
|
- bundle config set deployment 'true'
|
28
29
|
- bundle config set path 'vendor/bundle'
|
@@ -43,14 +44,26 @@ blocks:
|
|
43
44
|
prologue:
|
44
45
|
commands:
|
45
46
|
- checkout --use-cache
|
47
|
+
- gem update --system --no-document
|
46
48
|
- source .semaphore/bin/cache_restore rails
|
47
|
-
- bundle
|
49
|
+
- bundle config set deployment 'true'
|
50
|
+
- bundle config set path 'vendor/bundle'
|
51
|
+
- bundle install -j 4
|
48
52
|
- nvm install
|
49
53
|
- bin/yarn install --cache-folder ~/.cache/yarn
|
50
54
|
jobs:
|
51
55
|
- name: linting
|
52
56
|
commands:
|
53
57
|
- bin/fastcheck
|
58
|
+
epilogue:
|
59
|
+
on_fail:
|
60
|
+
commands:
|
61
|
+
- mkdir -p log
|
62
|
+
- mkdir -p tmp/screenshots
|
63
|
+
- mkdir -p coverage
|
64
|
+
- artifact push job --expire-in 2w log
|
65
|
+
- artifact push job --expire-in 2w tmp/screenshots
|
66
|
+
- artifact push job --expire-in 2w coverage
|
54
67
|
- name: tests
|
55
68
|
execution_time_limit:
|
56
69
|
minutes: 10
|
@@ -66,8 +79,11 @@ blocks:
|
|
66
79
|
prologue:
|
67
80
|
commands:
|
68
81
|
- checkout --use-cache
|
82
|
+
- gem update --system --no-document
|
69
83
|
- source .semaphore/bin/cache_restore rails
|
70
|
-
- bundle
|
84
|
+
- bundle config set deployment 'true'
|
85
|
+
- bundle config set path 'vendor/bundle'
|
86
|
+
- bundle install -j 4
|
71
87
|
- nvm install
|
72
88
|
- bin/yarn install --cache-folder ~/.cache/yarn
|
73
89
|
- sem-service start postgres
|
@@ -81,10 +97,10 @@ promotions:
|
|
81
97
|
pipeline_file: develop-deploy.yml
|
82
98
|
auto_promote:
|
83
99
|
when: "result = 'passed' and branch = 'develop'"
|
84
|
-
- name:
|
85
|
-
pipeline_file:
|
100
|
+
- name: main
|
101
|
+
pipeline_file: main-deploy.yml
|
86
102
|
auto_promote:
|
87
|
-
when: "result = 'passed' and branch = '
|
103
|
+
when: "result = 'passed' and branch = 'main'"
|
88
104
|
- name: testing
|
89
105
|
pipeline_file: testing-deploy.yml
|
90
106
|
auto_promote:
|
data/lib/renuo/cli/version.rb
CHANGED
data/lib/renuo/cli.rb
CHANGED
@@ -38,7 +38,6 @@ module Renuo
|
|
38
38
|
abort 'Nice! I updated myself. 🤩 Now you can run the command again.'
|
39
39
|
end
|
40
40
|
abort('Good. Just do it yourself then...😒')
|
41
|
-
exit
|
42
41
|
end
|
43
42
|
|
44
43
|
command 'display-name'.to_sym do |c|
|
@@ -47,7 +46,10 @@ module Renuo
|
|
47
46
|
c.description = 'Sets the name of a customer on the Renuo dashboard'
|
48
47
|
c.example 'Display "Peter Muster" on the dashboard', 'renuo display-name "Peter Muster"'
|
49
48
|
c.example 'Remove the current name from the dashboard', 'renuo display-name --delete'
|
49
|
+
c.example 'Override the current message on the dashboard', 'renuo display-name Happy friday 🍻 --override'
|
50
50
|
c.option '--delete', 'Deletes the current name'
|
51
|
+
c.option '--override', 'Overrides the entire message'
|
52
|
+
c.option '--monitor', 'Open the Google slides'
|
51
53
|
c.action do |args, options|
|
52
54
|
NameDisplay.new.run(args, options)
|
53
55
|
end
|
@@ -121,10 +123,10 @@ module Renuo
|
|
121
123
|
- whether you want to setup CloudFront to deliver assets via S3
|
122
124
|
|
123
125
|
The generated commands do the following:
|
124
|
-
- create an IAM user for each environment (
|
126
|
+
- create an IAM user for each environment (main, develop, testing) and add it to the renuo apps group.
|
125
127
|
- create S3 buckets for each user who owns it
|
126
128
|
- tag the buckets
|
127
|
-
- enable versioning for
|
129
|
+
- enable versioning for main buckets
|
128
130
|
(- set up a CloudFront distribution for each environment with the default config or plus alias if configured)
|
129
131
|
DESCRIPTION
|
130
132
|
c.example 'Setup a project (you will be asked for details)', 'renuo create-aws-project'
|
@@ -148,8 +150,8 @@ module Renuo
|
|
148
150
|
|
149
151
|
command 'release' do |c|
|
150
152
|
c.syntax = 'renuo release'
|
151
|
-
c.summary = 'Release a projects state of develop (on github) to
|
152
|
-
c.description = 'Creates a new release version of a project on
|
153
|
+
c.summary = 'Release a projects state of develop (on github) to main in one command.'
|
154
|
+
c.description = 'Creates a new release version of a project on main as either a Major, Minor, '\
|
153
155
|
'Patch or Custom release based on the current state of develop on Github'
|
154
156
|
c.example 'renuo release my-project minor', 'release a minor release of my-project'
|
155
157
|
c.example 'renuo release my-project custom 2.5.0', 'release my-project as release 2.5.0'
|
data/renuo-cli.gemspec
CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_development_dependency 'aruba', '~> 0.14.5'
|
30
30
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
31
|
+
spec.add_development_dependency 'byebug'
|
31
32
|
spec.add_development_dependency 'cucumber', '~> 3.1'
|
32
33
|
spec.add_development_dependency 'dotenv', '~> 2.7.2'
|
33
34
|
spec.add_development_dependency 'mdl', '~> 0.4.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renuo-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renuo AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '2.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: byebug
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: cucumber
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -305,6 +319,7 @@ files:
|
|
305
319
|
- bin/run
|
306
320
|
- bin/setup
|
307
321
|
- lib/renuo/cli.rb
|
322
|
+
- lib/renuo/cli/app/command_helper.rb
|
308
323
|
- lib/renuo/cli/app/configure_semaphore.rb
|
309
324
|
- lib/renuo/cli/app/configure_sentry.rb
|
310
325
|
- lib/renuo/cli/app/create_aws_project.rb
|
@@ -337,7 +352,6 @@ files:
|
|
337
352
|
- lib/renuo/cli/app/toggl/workspace.rb
|
338
353
|
- lib/renuo/cli/app/toggl_redmine_comparator.rb
|
339
354
|
- lib/renuo/cli/app/upgrade_laptop.rb
|
340
|
-
- lib/renuo/cli/app/upgrade_laptop/run_command.rb
|
341
355
|
- lib/renuo/cli/app/upgrade_laptop/upgrade_laptop_execution.rb
|
342
356
|
- lib/renuo/cli/app/upgrade_laptop/upgrade_mac_os.rb
|
343
357
|
- lib/renuo/cli/app/work.rb
|
@@ -364,7 +378,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
364
378
|
- !ruby/object:Gem::Version
|
365
379
|
version: '0'
|
366
380
|
requirements: []
|
367
|
-
rubygems_version: 3.
|
381
|
+
rubygems_version: 3.2.32
|
368
382
|
signing_key:
|
369
383
|
specification_version: 4
|
370
384
|
summary: The Renuo CLI automates some common workflows.
|