mgmt 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mgmt +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f32fec3a2196b85b44f3b46780d3fc21c20d0b2
|
4
|
+
data.tar.gz: 5159066bc394d9ea01c0d62a86bef11caae1e542
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1318bcf3271321453312c9c3bf3064282ed789cb56dfb06f816f8e7c6bb9c154e8b8ef5dad619118daf056ce8dee792a78fefefceb00673978feaf14836e21ac
|
7
|
+
data.tar.gz: cb23dcd38cf7337532f47331cb5b2e5350f15a8e124f83570dc3e4537b623ee458176460783e3f7881399fd55530b115448afe7c7a82d24f06123be2dc97a10b
|
data/bin/mgmt
CHANGED
@@ -9,7 +9,7 @@ module MGMT
|
|
9
9
|
DEPSFILE = "Gopherfile"
|
10
10
|
LOCKFILE = "Gopherfile.lock"
|
11
11
|
VENDOR = ".vendor"
|
12
|
-
VERSION = "0.2.
|
12
|
+
VERSION = "0.2.2"
|
13
13
|
|
14
14
|
def xputs(code, msg)
|
15
15
|
code = nil if ENV['TERM'] != "xterm"
|
@@ -134,14 +134,14 @@ module MGMT
|
|
134
134
|
def pull!
|
135
135
|
skip = false
|
136
136
|
if File.directory?(target)
|
137
|
-
skip = @tag && @tag == `
|
138
|
-
MGMT.sh "
|
137
|
+
skip = @tag && @tag == `cd #{target} && git log -n 1 --pretty=format:'%h'`.strip
|
138
|
+
MGMT.sh "cd #{target} && git pull -q origin master" unless skip
|
139
139
|
else
|
140
140
|
MGMT.sh "git clone -q #{@repo} #{target}"
|
141
141
|
end
|
142
142
|
|
143
|
-
@tag ||= `
|
144
|
-
MGMT.sh "
|
143
|
+
@tag ||= `cd #{target} && git log -n 1 --pretty=format:'%h'`.strip
|
144
|
+
MGMT.sh "cd #{target} && git reset -q --hard #{@tag}" unless skip
|
145
145
|
!skip
|
146
146
|
end
|
147
147
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mgmt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|