fulmar 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fulmar/infrastructure/service/git_service.rb +8 -0
- data/lib/fulmar/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: 55cfab2d652861606d72d808bd871adcf42f4178
|
4
|
+
data.tar.gz: db07f7edbc5d57b033b3fa37182cab5eb2dc313a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e636bea32532f3b0f9471b88d56f99011672729bd90c9527fea7577c6640498e661f784f3d28df82188bb43754f4105bddcf40c0a74b004bf78a1a2557a498
|
7
|
+
data.tar.gz: be2e26605ab98d0577d91a76d839a269ac06bbe760880465043523c1f1abb0dcf9ca58613f388ea862fb77ee6b8e4f3daf1f1521c0359fd1091fdb02009d5f44
|
@@ -44,6 +44,14 @@ module Fulmar
|
|
44
44
|
branches.select { |name| name.match(/^preview_/) }.sort
|
45
45
|
end
|
46
46
|
|
47
|
+
def current_hash
|
48
|
+
@git.head.target_id
|
49
|
+
end
|
50
|
+
|
51
|
+
def current_branch
|
52
|
+
@git.head.name.split('/').last
|
53
|
+
end
|
54
|
+
|
47
55
|
def checkout(branch_name = derive_branch_name)
|
48
56
|
if branches.include?(branch_name)
|
49
57
|
@git.checkout(branches.first)
|
data/lib/fulmar/version.rb
CHANGED