raykit 0.0.426 → 0.0.428
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/command.rb +1 -1
- data/lib/raykit/git/repository.rb +4 -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: 10fe3667006f4432fbc48b22108cb2520f996e2bdd19f660f1207bb571e66b35
|
4
|
+
data.tar.gz: 044d6478d23f86f2268830ea5fdccdc5fd64f07e78118d57da0a9ad4efd1e325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 169f4e8d9d9a48e569d7451916fb707a741035dfa47ddb9e1b39b873933e1b0a73ad30a7e7d4557e89c76a5ca38bf844fa9ceffbd43dc112836362e893d1b2ac
|
7
|
+
data.tar.gz: 3c933d5709040b55dfa7a1590d1f47e083173b50cbef5292745e91151999e6fed28c49bf5a9593975df7f8e555cc31335e9300645a63dd0846c5cad35c490fe3
|
data/lib/raykit/command.rb
CHANGED
@@ -213,7 +213,7 @@ module Raykit
|
|
213
213
|
cmd = "#{Rainbow(SECRETS.hide(@command)).yellow}"
|
214
214
|
if show_directory
|
215
215
|
puts "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan
|
216
|
-
puts Rainbow(" #{@directory}").
|
216
|
+
puts Rainbow(" #{@directory}").white + " "
|
217
217
|
else
|
218
218
|
puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} " + Rainbow("#{elapsed_str}").cyan
|
219
219
|
#puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} (#{elapsed_str})"
|
@@ -77,6 +77,7 @@ module Raykit
|
|
77
77
|
# The latest commit id for a branch of the repostiory
|
78
78
|
def latest_commit(branch)
|
79
79
|
if checkout_local_clone_directory_branch(branch)
|
80
|
+
update_local_clone_directory
|
80
81
|
Dir.chdir(local_clone_directory) do
|
81
82
|
text = `git log -n 1`
|
82
83
|
scan = text.scan(/commit (\w+)\s/)
|
@@ -100,7 +101,9 @@ module Raykit
|
|
100
101
|
public def update_local_clone_directory
|
101
102
|
if Dir.exist?(local_clone_directory)
|
102
103
|
Dir.chdir(local_clone_directory) do
|
103
|
-
Raykit::Command.new("git pull")
|
104
|
+
pull = Raykit::Command.new("git pull")
|
105
|
+
pull.run
|
106
|
+
pull
|
104
107
|
# t = `git pull`
|
105
108
|
end
|
106
109
|
else
|