continuum-stager-api 0.1.4 → 0.1.5

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: d0d3864ad524ef4fa0a156fe3f8cc4ef141dae51
4
- data.tar.gz: 690b1202d5b51364abd2bacee3051e07a7d68434
3
+ metadata.gz: 420af5409400c5903880516ca6f9aa8d3eb14f9f
4
+ data.tar.gz: f6e06621f8be8fcaeb296de08459bfdc39dce3a8
5
5
  SHA512:
6
- metadata.gz: 6d8db99aca832dca43142373cfc9c150e1ba49cc7d29fdf6b9670b81a7dde6ef1d7b9b011cf320c10f23d2898f23991c4d6e97ab5ae2ee78ad4302df7588eb9b
7
- data.tar.gz: 99e86cac3e463d90909eb61d74873192125b3cc4a91520bdf40d78681df58871209d7558598cb890f16c166723ad6da9c8124b967dc5fea7e8950c6ba0b35a42
6
+ metadata.gz: 7cb2832e2d7d6faace8f7f6b5548cd197b2d9cfddec5395e34e05851ffdf4fc5678f640ab800dcdb833fafadcc0f81ea1c5d572eb4a581d40b081bf5be732ce8
7
+ data.tar.gz: 849c2753e5746117d6c44c6fbbf1ff5dccb4d0f54ee57c34d32204314ee3789daf11ca70269b2f2a6b7334e4eb1ae78832a6b62ea45c27970b8d6d79047432a0
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.test_files = `git ls-files -- {spec}/*`.split("\n")
16
16
  gem.name = "continuum-stager-api"
17
17
  gem.require_paths = ["lib"]
18
- gem.version = "0.1.4"
18
+ gem.version = "0.1.5"
19
19
 
20
20
  gem.add_development_dependency 'rspec', '~> 2.6.0'
21
21
  gem.add_development_dependency 'rake'
@@ -67,7 +67,8 @@ module Apcera
67
67
 
68
68
  # Upload the new package to the staging coordinator
69
69
  def upload
70
- execute_app("cd #{app_path} && tar czf #{@updated_pkg_path} .")
70
+ app_dir = File.join(".", @app_path.sub(@root_path, ""))
71
+ execute_app("cd #{app_path}/.. && tar czf #{@updated_pkg_path} #{app_dir}")
71
72
 
72
73
  sha1 = Digest::SHA1.file(@updated_pkg_path)
73
74
  File.open(@updated_pkg_path, "rb") do |f|
@@ -165,7 +165,7 @@ describe Apcera::Stager do
165
165
  end
166
166
 
167
167
  it "should compress using tar czf" do
168
- @stager.should_receive(:execute_app).with("cd #{@stager.app_path} && tar czf #{@stager.updated_pkg_path} .").and_return
168
+ @stager.should_receive(:execute_app).with("cd #{@stager.app_path}/.. && tar czf #{@stager.updated_pkg_path} ./#{@appdir}").and_return
169
169
 
170
170
  @stager.upload
171
171
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: continuum-stager-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Ellithorpe