lxd-common 0.9.3 → 0.9.4
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 +4 -4
- data/.travis.yml +2 -3
- data/lib/nexussw/lxd/transport/mixins/cli.rb +6 -2
- data/lib/nexussw/lxd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9a1b61591052ea4dc36d429d4eb0c64e175d82eabaa1336d39e426ffb507d99
|
|
4
|
+
data.tar.gz: 66f077a04f62b447fc2d01ec07dc922fd3f64c7c37f8884d92117cf12863f627
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c3e7edbda05c5b20b6be7220622fb69b9b37616a8554d40af9b60a0232742b6cebe3b4eafd1d65c8083197de60281b5794fb5290ef8788776e2774c013bbfc7
|
|
7
|
+
data.tar.gz: fca27772aa6a1f05cfc9327dc119ea0e7425656c7549047b49059b23cdf95dc7b100d521500b1ac642d1df854f85297779441e9775032ec6cc4098f3ab839587
|
data/.travis.yml
CHANGED
|
@@ -24,10 +24,14 @@ module NexusSW
|
|
|
24
24
|
def execute(command, options = {}, &block)
|
|
25
25
|
command = runas_command(command, options) unless options[:subcommand]
|
|
26
26
|
command = command.shelljoin if command.is_a?(Array)
|
|
27
|
-
subcommand = options[:subcommand]
|
|
27
|
+
subcommand = options[:subcommand]
|
|
28
|
+
unless subcommand
|
|
29
|
+
subcommand = "exec #{container_name} --"
|
|
30
|
+
command = ['bash', '-c', command].shelljoin
|
|
31
|
+
end
|
|
28
32
|
command = "lxc #{subcommand} #{command}"
|
|
29
33
|
|
|
30
|
-
options.reject
|
|
34
|
+
options = options.reject { |k, _| [:subcommand, :runas].include? k }
|
|
31
35
|
|
|
32
36
|
inner_transport.execute command, options, &block
|
|
33
37
|
end
|
data/lib/nexussw/lxd/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lxd-common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Zachariasen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-02-
|
|
11
|
+
date: 2018-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|