bumperok 0.0.6 → 0.0.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/bin/bumper +1 -1
- data/lib/bumper.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3302f875a41afa1a6c2fefb262bb245eebf074ce
|
|
4
|
+
data.tar.gz: b28da6abfbd4916ba63a9a0ea70d0bad8609270f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca4852c7e486634267e4e8a5c13e17cd6dfacb25e049532a63cf79ddaf0b46aed7f7428634884b3edb7814e440a5a316dde2fe4914823fecb318e3e107d47dd2
|
|
7
|
+
data.tar.gz: 4eb9b94a81d75936cc8f50f28f2d3615fe8c70e743d3a772e4883c0c6eb83c2325fc49a057f540e45fb58babbd397d15455d3423099a56923f1364c7b8c56def
|
data/bin/bumper
CHANGED
|
@@ -48,7 +48,7 @@ when 'build'
|
|
|
48
48
|
end
|
|
49
49
|
when 'submodule'
|
|
50
50
|
if options.git_url and options.git_submodule
|
|
51
|
-
Bumper.submodule_update_version(options.git_submodule, options.git_submodule, options.git_url)
|
|
51
|
+
Bumper.submodule_update_version("#{options.git_submodule[0].upcase}#{options.git_submodule[1..-1]}", options.git_submodule, options.git_url)
|
|
52
52
|
end
|
|
53
53
|
else
|
|
54
54
|
raise "#{options.cmd} is unsupported command"
|
data/lib/bumper.rb
CHANGED
|
@@ -4,7 +4,7 @@ require 'git-ssh-wrapper'
|
|
|
4
4
|
require 'jenkins_api_client'
|
|
5
5
|
|
|
6
6
|
class Bumper
|
|
7
|
-
VERSION = "0.0.
|
|
7
|
+
VERSION = "0.0.7"
|
|
8
8
|
|
|
9
9
|
def self.tag git_path, tag_name
|
|
10
10
|
wrapper = GitSSHWrapper.with_wrapper(private_key_path: '~/.ssh/bumber_at_sibext', log_level: 'ERROR') do |w|
|
|
@@ -31,7 +31,7 @@ class Bumper
|
|
|
31
31
|
`rm -Rf #{project_path}`
|
|
32
32
|
`git clone --recursive #{git} #{project_path}`
|
|
33
33
|
`#{git(project_path)} checkout -b UpdateFrom#{display}`
|
|
34
|
-
|
|
34
|
+
`cd #{project_path} && git submodule update --remote #{name}`
|
|
35
35
|
`#{git(project_path)} commit -am'New updates from #{display}'`
|
|
36
36
|
`#{git(project_path)} push --force origin UpdateFrom#{display}`
|
|
37
37
|
`#{git(project_path)} checkout master`
|