depl 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +1 -0
- data/depl.gemspec +1 -1
- data/lib/depl/version.rb +1 -1
- data/spec/depl/main_spec.rb +12 -14
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0405248bce5c6321632cbbb540b4c913b803103d
|
4
|
+
data.tar.gz: f23990bbb4bc143cf80cfdb06a9eb9ce8d9fadbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 331d2951f60cb9aa44a0139032165e40243b17240c2fa7e912febbbbd2b5ec061c25f95f2974a85ed0ff41442103ae381e1ed8b9a15ec3ea2c20a21683683dbd
|
7
|
+
data.tar.gz: eef9109183ae547b604e63293cbc900e8fa901cc4009c263e5cc0603f0cb48713bbb58010d5952371790c76ad05bf0527352cf55771196bbd8e122c23c67c7f8
|
data/README.md
CHANGED
data/depl.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.homepage = "https://github.com/movableink/depl"
|
11
11
|
s.summary = %q{Writes project deployment hash to s3 file}
|
12
12
|
s.licenses = "MIT"
|
13
|
-
s.description = %q{Separate out the deployment concerns from your application by using depl to
|
13
|
+
s.description = %q{Separate out the deployment concerns from your application by using depl to update your git branches. Then let your provisioning system (for instance, chef + deploy_revision provider) take care of actually deploying new code. depl shows diffs between your current branch and the deployed revision.}
|
14
14
|
|
15
15
|
s.add_runtime_dependency "highline", "~> 1.6"
|
16
16
|
s.add_runtime_dependency "colorize", "~> 0.7"
|
data/lib/depl/version.rb
CHANGED
data/spec/depl/main_spec.rb
CHANGED
@@ -2,8 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Depl::Main do
|
4
4
|
let(:deploy) {
|
5
|
-
Depl::Main.new(:environment => 'production'
|
6
|
-
:config => {'s3' => 'my-bucket/deployments/foo'})
|
5
|
+
Depl::Main.new(:environment => 'production')
|
7
6
|
}
|
8
7
|
|
9
8
|
describe '#environment' do
|
@@ -12,18 +11,6 @@ describe Depl::Main do
|
|
12
11
|
end
|
13
12
|
end
|
14
13
|
|
15
|
-
describe '#filename' do
|
16
|
-
it 'computes the filename' do
|
17
|
-
expect(deploy.filename).to eql('production.sha')
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
describe '#key' do
|
22
|
-
it 'computes the key' do
|
23
|
-
expect(deploy.key).to eq('deployments/foo/production.sha')
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
14
|
describe '#diff' do
|
28
15
|
it 'uses git to find the commits between two shas' do
|
29
16
|
deploy.should_receive(:remote_sha).and_return("remote")
|
@@ -36,6 +23,17 @@ describe Depl::Main do
|
|
36
23
|
end
|
37
24
|
end
|
38
25
|
|
26
|
+
describe '#save_sha' do
|
27
|
+
it 'pushes a sha to the origin' do
|
28
|
+
deploy.should_receive(:local_sha).and_return("12345")
|
29
|
+
|
30
|
+
cmd = "git push --force origin 12345:refs/heads/deploy-production"
|
31
|
+
deploy.should_receive(:execute).with(cmd)
|
32
|
+
|
33
|
+
deploy.save_sha
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
39
37
|
describe '#up_to_date' do
|
40
38
|
it 'returns true when shas match' do
|
41
39
|
deploy.should_receive(:remote_sha).and_return("same")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: depl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Nutt
|
@@ -53,9 +53,9 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.5'
|
55
55
|
description: Separate out the deployment concerns from your application by using depl
|
56
|
-
to
|
57
|
-
|
58
|
-
|
56
|
+
to update your git branches. Then let your provisioning system (for instance, chef
|
57
|
+
+ deploy_revision provider) take care of actually deploying new code. depl shows
|
58
|
+
diffs between your current branch and the deployed revision.
|
59
59
|
email:
|
60
60
|
- michael@movableink.com
|
61
61
|
executables:
|