devops_assist 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.release_history.yml +2 -0
- data/Gemfile.lock +18 -18
- data/lib/devops_assist/version.rb +1 -1
- data/lib/devops_assist/version_manager.rb +8 -7
- data/tasks/devops_assist.rake +9 -3
- data/tasks/vcs.rake +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25dcd969f150b40b494562e4a2f4247fa93839857452687d84dce8727fdc12cf
|
4
|
+
data.tar.gz: 2ba0fc856e8dc5aacbaa63119a81f8d686321e6766fc1894ae2a1e7298ac3327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d2102fef7458504a64dec4a66f776127d9d712d2507a005327bd4e27085da9638eb22d343b96035ef36e567067f782c2b9a3d04bae8174f5a73f9e0fcdef94d
|
7
|
+
data.tar.gz: 448b1b76f9f4faa3dc9e66096cd681b087dc3e74a590da0a557d0ef58acf7be10602cf6557831a09f4f9de07df8cec48bd24a74730df0b4f849011e31950d3d4
|
data/.release_history.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
devops_assist (0.3.
|
4
|
+
devops_assist (0.3.5)
|
5
5
|
git_cli
|
6
6
|
git_cli_prompt
|
7
7
|
gvcs
|
@@ -14,35 +14,35 @@ GEM
|
|
14
14
|
specs:
|
15
15
|
base58 (0.2.3)
|
16
16
|
diff-lcs (1.5.0)
|
17
|
-
git_cli (0.
|
17
|
+
git_cli (0.11.2)
|
18
18
|
gvcs
|
19
19
|
ptools (~> 1.4.0)
|
20
20
|
teLogger
|
21
21
|
toolrack
|
22
|
-
git_cli_prompt (0.3.
|
22
|
+
git_cli_prompt (0.3.2)
|
23
23
|
teLogger
|
24
24
|
toolrack
|
25
25
|
tty-prompt
|
26
|
-
gvcs (0.1.
|
26
|
+
gvcs (0.1.1)
|
27
27
|
pastel (0.8.0)
|
28
28
|
tty-color (~> 0.5)
|
29
|
-
ptools (1.4.
|
29
|
+
ptools (1.4.3)
|
30
30
|
rake (13.0.6)
|
31
|
-
rspec (3.
|
32
|
-
rspec-core (~> 3.
|
33
|
-
rspec-expectations (~> 3.
|
34
|
-
rspec-mocks (~> 3.
|
35
|
-
rspec-core (3.
|
36
|
-
rspec-support (~> 3.
|
37
|
-
rspec-expectations (3.
|
31
|
+
rspec (3.12.0)
|
32
|
+
rspec-core (~> 3.12.0)
|
33
|
+
rspec-expectations (~> 3.12.0)
|
34
|
+
rspec-mocks (~> 3.12.0)
|
35
|
+
rspec-core (3.12.1)
|
36
|
+
rspec-support (~> 3.12.0)
|
37
|
+
rspec-expectations (3.12.2)
|
38
38
|
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
-
rspec-support (~> 3.
|
40
|
-
rspec-mocks (3.
|
39
|
+
rspec-support (~> 3.12.0)
|
40
|
+
rspec-mocks (3.12.4)
|
41
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
-
rspec-support (~> 3.
|
43
|
-
rspec-support (3.
|
44
|
-
teLogger (0.2.
|
45
|
-
toolrack (0.
|
42
|
+
rspec-support (~> 3.12.0)
|
43
|
+
rspec-support (3.12.0)
|
44
|
+
teLogger (0.2.2)
|
45
|
+
toolrack (0.20.2)
|
46
46
|
base58
|
47
47
|
tty-color (0.6.0)
|
48
48
|
tty-cursor (0.7.1)
|
@@ -19,27 +19,28 @@ module DevopsAssist
|
|
19
19
|
vv << vers[1]
|
20
20
|
vv << vers[0]
|
21
21
|
|
22
|
-
vv << "Custom"
|
23
|
-
vv << "Quit"
|
22
|
+
#vv << "Custom"
|
23
|
+
#vv << "Quit"
|
24
24
|
#vers << [ \
|
25
25
|
# "Maybe not now..." \
|
26
26
|
# ,"Nah, forget it..." \
|
27
27
|
#].sample
|
28
28
|
|
29
29
|
vsel = pmt.select(" Please select one of the versions below:") do |menu|
|
30
|
-
menu.choice "#{last_version} (current version - no change in version)", :no_change
|
31
30
|
#vers.each do |v|
|
32
31
|
vv.each do |v|
|
33
32
|
menu.choice v
|
34
33
|
end
|
34
|
+
|
35
|
+
menu.choice "#{last_version} (current version - no change in version)", last_version
|
36
|
+
menu.choice "Custom version number", :custom
|
37
|
+
menu.choice "Abort", :abort
|
35
38
|
end
|
36
39
|
|
37
40
|
case vsel
|
38
|
-
when :
|
39
|
-
vsel = last_version
|
40
|
-
when "Custom"
|
41
|
+
when :custom
|
41
42
|
vsel = pmt.ask(" Please provide custom version no:", required: true)
|
42
|
-
when
|
43
|
+
when :abort
|
43
44
|
raise DevopsAssist::Error, " Aborted. Have a nice day! "
|
44
45
|
end
|
45
46
|
|
data/tasks/devops_assist.rake
CHANGED
@@ -25,7 +25,6 @@ namespace :devops do
|
|
25
25
|
|
26
26
|
pmt = TTY::Prompt.new
|
27
27
|
|
28
|
-
|
29
28
|
# let's mark the session to allow automated context switching
|
30
29
|
ENV[DevopsAssist::EnvKeyGemReleasing] = "true"
|
31
30
|
|
@@ -36,7 +35,7 @@ namespace :devops do
|
|
36
35
|
# select version
|
37
36
|
#ver = DevopsAssist::VersionManager.prompt_version(gemName, rl.last_version_number(gemName))
|
38
37
|
ver = DevopsAssist::VersionManager.prompt_version(gemName, gu.gem_version_string)
|
39
|
-
pmt.say " Version
|
38
|
+
pmt.say " Version '#{ver}' is chosen", color: :yellow
|
40
39
|
|
41
40
|
selVerFile = gu.update_gem_version(ver) do |*args|
|
42
41
|
ops = args.first
|
@@ -57,7 +56,7 @@ namespace :devops do
|
|
57
56
|
res = Rake::Task["devops:vcs:checkin_changes"].execute
|
58
57
|
pmt.say " Workspace check in done\n", color: :yellow
|
59
58
|
|
60
|
-
proceed = pmt.yes?(" Proceed to build the gem? ")
|
59
|
+
proceed = pmt.yes?(" Proceed to build the gem? ", color: :yellow)
|
61
60
|
raise GitCliPrompt::UserAborted if not proceed
|
62
61
|
|
63
62
|
|
@@ -115,6 +114,13 @@ namespace :devops do
|
|
115
114
|
|
116
115
|
Rake::Task["devops:vcs:push_source_code"].execute({ root: root, pmt: pmt })
|
117
116
|
|
117
|
+
install = pmt.yes?(" Install the released gem to local environment? ")
|
118
|
+
if install
|
119
|
+
STDOUT.puts `gem install pkg/#{gemName}-#{ver}.gem`
|
120
|
+
end
|
121
|
+
|
122
|
+
pmt.say " Gem #{gemName} version #{ver} released successfully ", color: :green
|
123
|
+
|
118
124
|
rescue GitCliPrompt::UserAborted, GitCliPrompt::UserChangedMind, TTY::Reader::InputInterrupt
|
119
125
|
STDOUT.puts
|
120
126
|
rescue Exception => ex
|
data/tasks/vcs.rake
CHANGED
@@ -7,7 +7,12 @@ namespace :devops do
|
|
7
7
|
desc "Checking in changes of source code"
|
8
8
|
task :checkin_changes do
|
9
9
|
cli = DevopsAssist::Vcs::Git::CliPrompt.new
|
10
|
-
cli.commit(Dir.getwd)
|
10
|
+
cli.commit(Dir.getwd) do |ops|
|
11
|
+
case ops
|
12
|
+
when :raise_to_parent
|
13
|
+
true
|
14
|
+
end
|
15
|
+
end
|
11
16
|
end
|
12
17
|
|
13
18
|
desc "Checking in files generated by devops assist"
|