lxd-common 0.9.3 → 0.9.4

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
  SHA256:
3
- metadata.gz: 3d370f2a0d394ae017169a22a2f9cc3e6b173834c699b203aef1bd4f64173157
4
- data.tar.gz: 6d0f71ceb65f7d44d0d0376f1ccdf47173446bb376bb29d1b30d6b317d64ce7b
3
+ metadata.gz: f9a1b61591052ea4dc36d429d4eb0c64e175d82eabaa1336d39e426ffb507d99
4
+ data.tar.gz: 66f077a04f62b447fc2d01ec07dc922fd3f64c7c37f8884d92117cf12863f627
5
5
  SHA512:
6
- metadata.gz: debddb37688051f6171038e804348e661e301bf6d082a53dc29929c4c33dc2cd85d7a3507d11342764a1b295ff65ab6d2febe1c15c88d3ebe7387e0065be9b2e
7
- data.tar.gz: 61ca12709d9a1160f68a20eb4d19c622dcfa377c985db7afd6cda38ed6e6101e8bd736572c6c138b8c6fc70cb19d3fe78f42086c03629f9c0762366990169033
6
+ metadata.gz: 6c3e7edbda05c5b20b6be7220622fb69b9b37616a8554d40af9b60a0232742b6cebe3b4eafd1d65c8083197de60281b5794fb5290ef8788776e2774c013bbfc7
7
+ data.tar.gz: fca27772aa6a1f05cfc9327dc119ea0e7425656c7549047b49059b23cdf95dc7b100d521500b1ac642d1df854f85297779441e9775032ec6cc4098f3ab839587
data/.travis.yml CHANGED
@@ -1,8 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.1.0
5
- - 2.4.3
4
+ - 2.4.2
6
5
  - 2.5.0
7
6
  - ruby-head
8
7
  matrix:
@@ -32,4 +31,4 @@ deploy:
32
31
  gem: lxd-common
33
32
  on:
34
33
  tags: true
35
- rvm: 2.4.3
34
+ rvm: 2.4.2
@@ -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] || "exec #{container_name} --"
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! { |k, _| [:subcommand, :runas].include? k }
34
+ options = options.reject { |k, _| [:subcommand, :runas].include? k }
31
35
 
32
36
  inner_transport.execute command, options, &block
33
37
  end
@@ -1,5 +1,5 @@
1
1
  module NexusSW
2
2
  module LXD
3
- VERSION = '0.9.3'.freeze
3
+ VERSION = '0.9.4'.freeze
4
4
  end
5
5
  end
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday