apcera-stager-api 0.3.0 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc3737fcfd86c07d0f4009741e6168079d80ceb3
4
- data.tar.gz: 0ad42b5acc9d9e75a146dec1cba0f73664f1e7dc
3
+ metadata.gz: 6354b54a517b42f0fd4aa4013507bd2f783d5ae8
4
+ data.tar.gz: 82aebe6f2cc5a146dbe8c395c69b285e7009c4d4
5
5
  SHA512:
6
- metadata.gz: 4ea8c40730ad9005247a057f21bc59ce202c255fde4dc36651af9c51ff3598bb54c13dc120cfb14debae6e953d44e5f8453721750db785084aa9fcf5c48b5501
7
- data.tar.gz: a74dc48fc698a0485ed038af8dc47ef8f32adcb6c93b3f849f72041d961603994392fd9249520f3d4a1baf6a1fa2f9304a4aa4843cd794e0240b301ba70197be
6
+ metadata.gz: 43b3b79c36d82795182b4fa858c2e9748e47dfcbc3812ffb629ddc30846d25cecd84c38efff83478fca3d79463d8fc496ee5bbb0010e622d14e0396872b655fc
7
+ data.tar.gz: 5fa378995637afd588a6ad5b9659e705d1febe1692af0c0572b64e464aa74725cc8baf86001a210041c20efee9f8f781b155929d00d1bbe0b5dba77d647566e0
@@ -2,6 +2,36 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  Documentation started at the 0.2.5 release.
4
4
 
5
+ ## 0.3.1 apcera-stager-api
6
+
7
+ ### Added
8
+ - Added the ability to call execute and execute_app with variadic input which
9
+ allows shell-less commands to be run, increasing security of the calls.
10
+
11
+ ### Deprecated
12
+ - Nothing.
13
+
14
+ ### Removed
15
+ - Nothing.
16
+
17
+ ### Fixed
18
+ - Nothing.
19
+
20
+ ## 0.3.0 apcera-stager-api
21
+
22
+ ### Added
23
+ - Added ability to call extract without arguments, indicating that the files
24
+ should not be wrapped by another directory.
25
+
26
+ ### Deprecated
27
+ - Nothing.
28
+
29
+ ### Removed
30
+ - Nothing.
31
+
32
+ ### Fixed
33
+ - Nothing.
34
+
5
35
  ## 0.2.5 apcera-stager-api
6
36
 
7
37
  ### Added
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.test_files = `git ls-files -- {spec}/*`.split("\n")
16
16
  gem.name = "apcera-stager-api"
17
17
  gem.require_paths = ["lib"]
18
- gem.version = "0.3.0"
18
+ gem.version = "0.3.1"
19
19
 
20
20
  gem.add_development_dependency 'rspec', '~> 2.6.0'
21
21
  gem.add_development_dependency 'rake'
@@ -56,11 +56,11 @@ module Apcera
56
56
 
57
57
  # Execute a command in the shell.
58
58
  # We don't want real commands in tests.
59
- def execute(cmd)
59
+ def execute(*cmd)
60
60
  Bundler.with_clean_env do
61
- result = system(cmd, @system_options)
61
+ result = system(*cmd, @system_options)
62
62
  if !result
63
- raise Apcera::Error::ExecuteError.new("failed to execute: #{cmd}.\n")
63
+ raise Apcera::Error::ExecuteError.new("failed to execute: #{cmd.join(' ')}.\n")
64
64
  end
65
65
 
66
66
  result
@@ -71,13 +71,13 @@ module Apcera
71
71
 
72
72
  # Execute a command in the directory your package was extracted to (or where
73
73
  # you manually set @app_dir). Useful helper.
74
- def execute_app(cmd)
74
+ def execute_app(*cmd)
75
75
  raise_app_path_error if @run_path == nil
76
76
  Bundler.with_clean_env do
77
77
  Dir.chdir(@run_path) do |run_path|
78
- result = system(cmd, @system_options)
78
+ result = system(*cmd, @system_options)
79
79
  if !result
80
- raise Apcera::Error::ExecuteError.new("failed to execute: #{cmd}.\n")
80
+ raise Apcera::Error::ExecuteError.new("failed to execute: #{cmd.join(' ')}.\n")
81
81
  end
82
82
 
83
83
  result
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apcera-stager-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Ellithorpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-26 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client