engineyard-serverside 2.6.0 → 2.6.1

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.
@@ -105,8 +105,10 @@ module EY
105
105
  Time.now.utc.strftime("%Y%m%d%H%M%S")
106
106
  end
107
107
 
108
+ # if active_release is already set, it's set because we're operating on
109
+ # an existing release. This happens during integrate
108
110
  def new_release!
109
- @active_release = path(:releases, release_dirname)
111
+ @active_release ||= path(:releases, release_dirname)
110
112
  end
111
113
 
112
114
  # If no active release is defined, use current
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module Serverside
3
- VERSION = '2.6.0'
3
+ VERSION = '2.6.1'
4
4
  end
5
5
  end
@@ -1,19 +1,26 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe "Deploying a simple application" do
4
- context "without Bundler" do
5
- before(:all) do
6
- deploy_test_application('not_bundled')
7
- end
4
+ before(:all) do
5
+ deploy_test_application('not_bundled')
6
+ end
7
+
8
+ it "creates a REVISION file" do
9
+ expect(deploy_dir.join('current', 'REVISION')).to exist
10
+ end
11
+
12
+ it "restarts the app servers" do
13
+ restart = deploy_dir.join('current', 'restart')
14
+ expect(restart).to exist
15
+ expect(restart.read.chomp).to eq(%|LANG="en_US.UTF-8" /engineyard/bin/app_rails31 deploy|)
16
+ end
17
+
18
+ it "reuses the same active_release directory if a release_path is specified (such as in integrate)" do
19
+ path = @config.paths.active_release
20
+ expect(path.parent.children.size).to eq(1)
8
21
 
9
- it "creates a REVISION file" do
10
- expect(deploy_dir.join('current', 'REVISION')).to exist
11
- end
22
+ redeploy_test_application('config' => {'release_path' => path.to_s})
12
23
 
13
- it "restarts the app servers" do
14
- restart = deploy_dir.join('current', 'restart')
15
- expect(restart).to exist
16
- expect(restart.read.chomp).to eq(%|LANG="en_US.UTF-8" /engineyard/bin/app_rails31 deploy|)
17
- end
24
+ expect(path.parent.children.size).to eq(1)
18
25
  end
19
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-11 00:00:00.000000000 Z
12
+ date: 2014-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -482,7 +482,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
482
482
  version: '0'
483
483
  segments:
484
484
  - 0
485
- hash: 696469692367855217
485
+ hash: -1292946205769568354
486
486
  required_rubygems_version: !ruby/object:Gem::Requirement
487
487
  none: false
488
488
  requirements: