devops_assist 0.3.5 → 0.3.7
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/.release_history.yml +4 -0
- data/Gemfile.lock +1 -1
- data/lib/devops_assist/gem/gem_utils.rb +1 -0
- data/lib/devops_assist/version.rb +1 -1
- data/tasks/devops_assist.rake +25 -2
- data/tasks/gem.rake +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02d569df0a43785b3d401d7ee0f5ba7a627f95871f4b4575b9def4c88bb18fd0
|
4
|
+
data.tar.gz: af1254ddc0651dde565326afa73b159ec2a53d456e48228b93883c57cf7dc460
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90661a06026194c43514de3a4646217503996456e5720921df09dc2104ed47f4b62ce3ce1c7cbeab59ef69e2f133808b2049dac3b73adcfdf32f0ac9ede26436
|
7
|
+
data.tar.gz: 70007815c3f8b08e32a05648c041e0d980ce93398d32aeb3aae0e7a1f6dd680680cb5bdfacf223b8629e9ea39b66789a97ceef1a45c5d788f60849e21faac3f8
|
data/.release_history.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -106,6 +106,7 @@ module DevopsAssist
|
|
106
106
|
cmd = "cd #{root} && gem push #{targetGem} -k #{selAcct}"
|
107
107
|
logger.tdebug :pubgemfile, "Command to publish gem : #{cmd}"
|
108
108
|
res = `#{cmd}`
|
109
|
+
$stdin.gets while $stdin.ready? # to clear out any remaining input entry in the event publish operation failed
|
109
110
|
[$?, res, targetGem]
|
110
111
|
else
|
111
112
|
raise GemError, "Given Gemfile '#{gemfile}' not found"
|
data/tasks/devops_assist.rake
CHANGED
@@ -14,6 +14,20 @@ namespace :devops do
|
|
14
14
|
|
15
15
|
gu = GemUtils.new(root)
|
16
16
|
|
17
|
+
begin
|
18
|
+
|
19
|
+
pmt = TTY::Prompt.new
|
20
|
+
|
21
|
+
pmt.puts "\n\n DevopsAssist version #{DevopsAssist::VERSION}"
|
22
|
+
pmt.puts " Initialization of workspace"
|
23
|
+
pmt.puts
|
24
|
+
|
25
|
+
|
26
|
+
rescue TTY::Reader::InputInterrupt
|
27
|
+
rescue Exception => ex
|
28
|
+
pmt.puts "\n Aborted"
|
29
|
+
end
|
30
|
+
|
17
31
|
end
|
18
32
|
|
19
33
|
desc "Release gem file project"
|
@@ -35,7 +49,7 @@ namespace :devops do
|
|
35
49
|
# select version
|
36
50
|
#ver = DevopsAssist::VersionManager.prompt_version(gemName, rl.last_version_number(gemName))
|
37
51
|
ver = DevopsAssist::VersionManager.prompt_version(gemName, gu.gem_version_string)
|
38
|
-
pmt.say " Version '#{ver}' is chosen", color: :yellow
|
52
|
+
pmt.say " Version '#{ver}' is chosen\n", color: :yellow
|
39
53
|
|
40
54
|
selVerFile = gu.update_gem_version(ver) do |*args|
|
41
55
|
ops = args.first
|
@@ -48,13 +62,22 @@ namespace :devops do
|
|
48
62
|
end
|
49
63
|
pmt.say " Version file updated", color: :yellow
|
50
64
|
|
65
|
+
# Add file changed by system into git first
|
66
|
+
miscFiles = []
|
67
|
+
miscFiles << selVerFile # version.rb
|
68
|
+
miscFiles << DevopsAssist::ReleaseLogger::LOG_NAME # release_history.yml
|
69
|
+
#miscFiles << 'Gemfile.lock'
|
70
|
+
Rake::Task["devops:vcs:checkin_misc_files"].execute({ root: root, files: miscFiles, version: ver })
|
71
|
+
#pmt.say " Updated files during release prep have committed into version control", color: :yellow
|
72
|
+
|
51
73
|
|
52
74
|
# check in source code
|
53
75
|
# Check in must be done 1st or else the 'gem build' process will fail
|
54
76
|
# because build will use git command. For any files that already deleted,
|
55
77
|
# the build will failed to find the files and throw exception
|
78
|
+
# However, there are files that will changed after build i.e Gemfile.lock
|
56
79
|
res = Rake::Task["devops:vcs:checkin_changes"].execute
|
57
|
-
pmt.say " Workspace check in done\n", color: :yellow
|
80
|
+
pmt.say " Workspace check in done\n\n", color: :yellow
|
58
81
|
|
59
82
|
proceed = pmt.yes?(" Proceed to build the gem? ", color: :yellow)
|
60
83
|
raise GitCliPrompt::UserAborted if not proceed
|
data/tasks/gem.rake
CHANGED
@@ -64,6 +64,9 @@ namespace :devops do
|
|
64
64
|
|
65
65
|
if res.respond_to?(:success?)
|
66
66
|
if res.success?
|
67
|
+
pmt.puts
|
68
|
+
pmt.puts out, color: :yellow
|
69
|
+
pmt.puts
|
67
70
|
pmt.say " Gem published!\n", color: :yellow
|
68
71
|
else
|
69
72
|
pmt.say " Gem publishing failed. Return message :\n#{out}", color: :red
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devops_assist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Liaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toolrack
|