chake 0.4.2 → 0.4.3

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: 78f1d74c44ff294ee60fae46ba8f2d18313c2929
4
- data.tar.gz: d8a5234e8b727e73c2f3cfd5355632b7c0cf7870
3
+ metadata.gz: a71056a314743f325bbe972a713f1a6ac51542d4
4
+ data.tar.gz: eff18b53b07f5f53cde6196e477886584c73b10d
5
5
  SHA512:
6
- metadata.gz: 3cd234acbd72d10f1dc7f6032e7e717388f5f7e4b721c35a9d3ab6a51bf7490bbe2f9d594310065d69111fc81208b0b4ceee9996ac06dc33880f89cc1a21ff25
7
- data.tar.gz: f1dae77c74450e4e63e93a0585819e4e0004b357b6633d2cb48028873b9beeba62abbffc0b66be3b2bf6f265c57541b12e8cbcab019faa9e23ecb38a4ed698b5
6
+ metadata.gz: a2ef4216d07f35e13ef892f9bb137ce6e1dff6ca30fbf5219b47f359cc859ff168807f77d72fa16ee47ffb7228b5b082f256973be28b7dc0c8ec5b36e36db34a
7
+ data.tar.gz: cb6dc2327515a1f7d3e06c3dfecd553393ba5724148ba76977378ef41437f2324501d0d70d3b6887c21d635648d2456a0674f8db171cf3dd9d6fb92494a5997d
@@ -1,3 +1,9 @@
1
+ # 0.4.3
2
+
3
+ * When running remote commands as root, run `sudo COMMAND` directly instead of
4
+ `sudo sh -c "COMMAND"`. Under over-restrictive sudo setups (i.e. one in which
5
+ you cannot run a shell as root), `sudo sh -c "FOO"` will not be allowed.
6
+
1
7
  # 0.4.2
2
8
 
3
9
  * tmp/chake: create only when actually needed
@@ -40,7 +40,7 @@ module Chake
40
40
  if node.remote_username == 'root'
41
41
  run(cmd)
42
42
  else
43
- run('sudo sh -c "' + cmd + '"')
43
+ run('sudo ' + cmd)
44
44
  end
45
45
  end
46
46
 
@@ -1,3 +1,3 @@
1
1
  module Chake
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -21,7 +21,7 @@ shared_examples "Chake::Backend" do |backend_class|
21
21
  end
22
22
 
23
23
  it('runs as root') do
24
- expect(backend).to receive(:run).with('sudo sh -c "something"')
24
+ expect(backend).to receive(:run).with('sudo something')
25
25
  backend.run_as_root('something')
26
26
  end
27
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Terceiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler