releasecop 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80b447cdd1baf76fd9563d55b07097551d7bc04b6a17f1100f0bc86525378850
4
- data.tar.gz: '098356e8e0b7e83de38bf62e9d29a79f4cc6b16a434d2fcded1fda3e4d0b704d'
3
+ metadata.gz: 0ffb36cc735e139672cdfb89821036b72bed63f2c0bd212da55b757d75209e0e
4
+ data.tar.gz: b4247bfc1336ef8e9164aa179aea52f4156e0b5f6cde04d1ca686563f104883f
5
5
  SHA512:
6
- metadata.gz: 7e1b9a92d37b352b57d8ea7f4f13dabbd025a37fff5be9803a8e5ffacdbecb3ea528e7b37dd5532aba18378a9abc20214da0b122a2454f9712c584d0076723b1
7
- data.tar.gz: 2478e9f8bd5df7802bc64be5105b0ccceaaccb0f62dc93e43a6b49d0aca45429d05559b5b9789ac29cfeec2e69a3388d2a032c55826201b21d3e0eaf2f6c7a47
6
+ metadata.gz: 1c0bce5cdc0c17604327da87c0c18e34516d14336ad053c1c5a4f4608a75adbefb72586369a6c3ab182654d1d7f0673dfad22560d709cde08464b07b78d07c59
7
+ data.tar.gz: b7d660cb20ce653fd9a3d185ab44a6e8006f20d16e1b5d286be3f177585b7b41ff059ffa9f870c17c123a892f5e3169899404493eba2ba25e041051da465a86c
data/CHANGELOG.md CHANGED
@@ -1,8 +1,11 @@
1
1
  (Next)
2
2
  ------------
3
-
4
3
  * Your contribution here...
5
4
 
5
+ 0.0.10 (2018-11-09)
6
+ ---
7
+ * Allow working directory to be overridden (d728567)
8
+
6
9
  0.0.9 (2018-08-20)
7
10
  ------------
8
11
 
@@ -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(CONFIG_DIR) do
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
@@ -1,3 +1,3 @@
1
1
  module Releasecop
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
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.9
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-08-20 00:00:00.000000000 Z
11
+ date: 2018-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor