depl 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68f043ef8f3eee4c482df1aeb3d01a3260591faf
4
- data.tar.gz: 7931ea5e765b4dc6b669c7dd475f3f44fe8b407e
3
+ metadata.gz: 0405248bce5c6321632cbbb540b4c913b803103d
4
+ data.tar.gz: f23990bbb4bc143cf80cfdb06a9eb9ce8d9fadbb
5
5
  SHA512:
6
- metadata.gz: 9cc658d19daabfa9c1b24e3d693eaffc7787e72a340cb0ad41f835b24772d8864e1310eebb9f6449183e3a6e28fd62b979e77408b43f61c1312ddd1e5f4971fe
7
- data.tar.gz: 35a5440ae2c9bd56e30f10e6c1efce23813d38275668d63c3c9303c01ad7a7f69327521f8e1b6d165a4d3c08e73feff6c738f5051975e33310343dec9d2453b9
6
+ metadata.gz: 331d2951f60cb9aa44a0139032165e40243b17240c2fa7e912febbbbd2b5ec061c25f95f2974a85ed0ff41442103ae381e1ed8b9a15ec3ea2c20a21683683dbd
7
+ data.tar.gz: eef9109183ae547b604e63293cbc900e8fa901cc4009c263e5cc0603f0cb48713bbb58010d5952371790c76ad05bf0527352cf55771196bbd8e122c23c67c7f8
data/README.md CHANGED
@@ -27,6 +27,7 @@ Movable Ink uses Chef to push out new code, and Chef is set up to use environmen
27
27
 
28
28
  ## History
29
29
 
30
+ * _0.0.2_ - Updated gem description.
30
31
  * _0.0.1_ - Forked from deploy_s3; initial release.
31
32
 
32
33
  ## License
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 write your latest deployed git hash to s3. 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.}
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
@@ -1,3 +1,3 @@
1
1
  module Depl
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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.1
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 write your latest deployed git hash to s3. Then let your provisioning system
57
- (for instance, chef + deploy_revision provider) take care of actually deploying
58
- new code. depl shows diffs between your current branch and the deployed revision.
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: