renuo-cli 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/renuo/cli/app/migrate_to_github.rb +6 -6
- data/lib/renuo/cli/version.rb +1 -1
- 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: 1fac779506221d987c28935ef6a8e0623d75a45b
|
4
|
+
data.tar.gz: a0a5cef444ddc58aebf0970827ca28cb49ea14e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6862ee44a7470fb30e33e79eef15dee60af7c82614b77555679f2caec3ed2e046e5529a6ee8dc3e8d2bef1eb8d9491dd34e04e13cf376f89676ffb340c30b35
|
7
|
+
data.tar.gz: 34bb158427e1f70e269d04a27ae52e9864d0736f9b6bdcae8e6894d622b956fecdb3554bdf9040bccb5e5d69b61d8e6d017071020fba825b37565b249fc1d033
|
data/Gemfile.lock
CHANGED
@@ -34,22 +34,22 @@ class MigrateToGithub
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def transfer_git
|
37
|
-
`git clone --mirror git@git.renuo.ch:renuo/#{@project_name}.git`
|
38
|
-
`cd #{@project_name}.git && hub create -p renuo/#{@project_name}`
|
39
|
-
`cd #{@project_name}.git && git push --mirror git@github.com:renuo/#{@project_name}.git`
|
37
|
+
puts `git clone --mirror git@git.renuo.ch:renuo/#{@project_name}.git`
|
38
|
+
puts `cd #{@project_name}.git && hub create -p renuo/#{@project_name}`
|
39
|
+
puts `cd #{@project_name}.git && git push --mirror git@github.com:renuo/#{@project_name}.git`
|
40
40
|
`rm -rf #{@project_name}.git`
|
41
41
|
end
|
42
42
|
|
43
43
|
def update_readme
|
44
44
|
agree('Let us update the README.md now. Ready?')
|
45
45
|
|
46
|
-
`git clone git@github.com:renuo/#{@project_name}.git`
|
47
|
-
`cd #{@project_name} && git fetch --all && git checkout develop && git pull && git flow init -d`
|
46
|
+
puts `git clone git@github.com:renuo/#{@project_name}.git`
|
47
|
+
puts `cd #{@project_name} && git fetch --all && git checkout develop && git pull && git flow init -d`
|
48
48
|
File.write("#{@project_name}/README.md", File.read("#{@project_name}/README.md").gsub('git.renuo.ch', 'github.com'))
|
49
49
|
|
50
50
|
update_readme_loop
|
51
51
|
|
52
|
-
`cd #{@project_name} && git commit -m 'migrate to github' && git push --set-upstream origin develop`
|
52
|
+
puts `cd #{@project_name} && git commit -m 'migrate to github' && git push --set-upstream origin develop`
|
53
53
|
`rm -rf #{@project_name}`
|
54
54
|
end
|
55
55
|
|
data/lib/renuo/cli/version.rb
CHANGED