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 +4 -4
- data/apcera-stager-api-contrib.gemspec +1 -1
- data/lib/apcera/stager/stager.rb +2 -1
- data/spec/apcera/stager/stager_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 420af5409400c5903880516ca6f9aa8d3eb14f9f
|
4
|
+
data.tar.gz: f6e06621f8be8fcaeb296de08459bfdc39dce3a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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'
|
data/lib/apcera/stager/stager.rb
CHANGED
@@ -67,7 +67,8 @@ module Apcera
|
|
67
67
|
|
68
68
|
# Upload the new package to the staging coordinator
|
69
69
|
def upload
|
70
|
-
|
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}
|
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
|