mgmt 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mgmt +5 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7adf2734177f622d4711cc2a90f26f92898602d5
4
- data.tar.gz: c7d6a1dd4ff154f9055e9a07c333a1139a13104b
3
+ metadata.gz: 4f32fec3a2196b85b44f3b46780d3fc21c20d0b2
4
+ data.tar.gz: 5159066bc394d9ea01c0d62a86bef11caae1e542
5
5
  SHA512:
6
- metadata.gz: 919ab5c1cb32720fa26146755f220c451c6f81e8a821e2625394057850594c1e66c7ace1e88fc87ceeb710c29253a21417f44ad3ba87765adc9777751c7e1276
7
- data.tar.gz: c02e3fd6a966e9215136badabe68d7bff67daf0cadcef858f710d98f7918499262fa315659ee22b1f22e4cda5fc1e62a2caf73a709484517237e6ec9b78a9ec3
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.1"
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 == `git -C #{target} log -n 1 --pretty=format:'%h'`.strip
138
- MGMT.sh "git -C #{target} pull -q origin master" unless skip
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 ||= `git -C #{target} log -n 1 --pretty=format:'%h'`.strip
144
- MGMT.sh "git -C #{target} reset -q --hard #{@tag}" unless skip
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake