raykit 0.0.44 → 0.0.45
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/lib/raykit/git.rb +9 -9
- 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: ed6b79d50c4d9bfafe22385daed2c044f64ed0753d40165cead869869523a2eb
|
4
|
+
data.tar.gz: d702f3701c11e9a4c67b92b574e98d2954cef0bab040ca8a2405031ce6aa8d54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 641b2008ec0c9a726e8597608f5798fbd113eba5fffe49728bf4f8197b96ad5ed9e3d359495297f9251c25c36215c7291db3cca82479eccc430dc0c9166f4ee8
|
7
|
+
data.tar.gz: 064f0efbc199a8f72c8f9f9cd79a83a717864453aecd5f40ffb13e50bb55bb5a2eeffdd4d909e38db626ce67081d35ed012ba807c916e006cfea5e09412b4d18
|
data/lib/raykit/git.rb
CHANGED
@@ -38,9 +38,9 @@ module Raykit
|
|
38
38
|
if(text.include?('HEAD detached'))
|
39
39
|
return 'master'
|
40
40
|
end
|
41
|
-
puts "get_current_branch text=#{text}"
|
41
|
+
#puts "get_current_branch text=#{text}"
|
42
42
|
scan=text.scan(/\*\s([\w\.-]+)/)
|
43
|
-
puts "scan=#{scan}"
|
43
|
+
#puts "scan=#{scan}"
|
44
44
|
scan[0][0].to_s
|
45
45
|
end
|
46
46
|
|
@@ -51,11 +51,11 @@ module Raykit
|
|
51
51
|
if(!Dir.exist?(parent_dir))
|
52
52
|
FileUtils.mkdir_p(parent_dir)
|
53
53
|
end
|
54
|
-
|
55
|
-
puts "cmd.command=#{cmd.command}"
|
56
|
-
puts "cmd.exitstatus=#{cmd.exitstatus}"
|
57
|
-
puts "cmd.output=#{cmd.output}"
|
58
|
-
puts "cmd.error=#{cmd.error}"
|
54
|
+
Command.new("git clone #{remote} #{clone_dir}")
|
55
|
+
#puts "cmd.command=#{cmd.command}"
|
56
|
+
#puts "cmd.exitstatus=#{cmd.exitstatus}"
|
57
|
+
#puts "cmd.output=#{cmd.output}"
|
58
|
+
#puts "cmd.error=#{cmd.error}"
|
59
59
|
end
|
60
60
|
Dir.chdir(clone_dir) do
|
61
61
|
Command.new('git pull')
|
@@ -63,9 +63,9 @@ module Raykit
|
|
63
63
|
Command.new("git checkout #{branch}")
|
64
64
|
end
|
65
65
|
text=`git log --name-status HEAD^..HEAD`
|
66
|
-
puts "get_latest_commit text: #{text}"
|
66
|
+
#puts "get_latest_commit text: #{text}"
|
67
67
|
scan=text.scan(/commit ([\w]+)\s/)
|
68
|
-
puts "scan: #{scan}"
|
68
|
+
#puts "scan: #{scan}"
|
69
69
|
return scan[0][0].to_s
|
70
70
|
end
|
71
71
|
end
|