releasecop 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/releasecop/checker.rb +4 -3
- data/lib/releasecop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ffb36cc735e139672cdfb89821036b72bed63f2c0bd212da55b757d75209e0e
|
4
|
+
data.tar.gz: b4247bfc1336ef8e9164aa179aea52f4156e0b5f6cde04d1ca686563f104883f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c0bce5cdc0c17604327da87c0c18e34516d14336ad053c1c5a4f4608a75adbefb72586369a6c3ab182654d1d7f0673dfad22560d709cde08464b07b78d07c59
|
7
|
+
data.tar.gz: b7d660cb20ce653fd9a3d185ab44a6e8006f20d16e1b5d286be3f177585b7b41ff059ffa9f870c17c123a892f5e3169899404493eba2ba25e041051da465a86c
|
data/CHANGELOG.md
CHANGED
data/lib/releasecop/checker.rb
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
module Releasecop
|
2
2
|
class Checker
|
3
|
-
attr_accessor :name, :envs
|
3
|
+
attr_accessor :name, :envs, :working_dir
|
4
4
|
|
5
|
-
def initialize(name, envs)
|
5
|
+
def initialize(name, envs, working_dir = Releasecop::CONFIG_DIR)
|
6
6
|
self.name = name
|
7
7
|
self.envs = envs.map { |e| Releasecop::ManifestItem.new(name, e) }
|
8
|
+
self.working_dir = working_dir
|
8
9
|
end
|
9
10
|
|
10
11
|
def check
|
11
|
-
Dir.chdir(
|
12
|
+
Dir.chdir(working_dir) do
|
12
13
|
`git clone #{envs.first.git} #{'--bare' if envs.all?(&:bare_clone?)} #{name} > /dev/null 2>&1`
|
13
14
|
|
14
15
|
Dir.chdir(name) do
|
data/lib/releasecop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: releasecop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joey Aghion
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|