chake 0.21.1 → 0.21.2
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/ChangeLog.md +4 -0
- data/coverage/index.html +2 -2
- data/lib/chake/backend.rb +1 -1
- data/lib/chake/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +2 -5
- data/examples/test/Vagrantfile +0 -70
- data/examples/test/cookbooks/basics/recipes/default.rb +0 -1
- data/examples/test/cookbooks/example/files/default/test +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1a49a30ab5813cf38d096051724b2f176c23b193235e58c0496cf9be504627f
|
4
|
+
data.tar.gz: c647cb843aa21c2ae6b4c2e91ebd67ba5f9fdea080344841c988838eacfcf699
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f7771e74f4611d719bf7074947f69a74c35c1effa34ee6fd9dbc279314c4c0689b1f6120937a62f8b503d99531469dde09ea119e12bb2616f2f7f5e219ed127
|
7
|
+
data.tar.gz: fa31fdb559dcdb400812f9cb15cbba051f703572411263e0b3efa685fc4a0f94831acd0c7aa928cab4caf6ad9495de8873c3ffb614e78ff70d58f0fc865c51fb
|
data/ChangeLog.md
CHANGED
data/coverage/index.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
<img src="./assets/0.11.0/loading.gif" alt="loading"/>
|
15
15
|
</div>
|
16
16
|
<div id="wrapper" style="display:none;">
|
17
|
-
<div class="timestamp">Generated <abbr class="timeago" title="2020-
|
17
|
+
<div class="timestamp">Generated <abbr class="timeago" title="2020-04-11T16:52:14-03:00">2020-04-11T16:52:14-03:00</abbr></div>
|
18
18
|
<ul class="group_tabs"></ul>
|
19
19
|
|
20
20
|
<div id="content">
|
@@ -514,7 +514,7 @@
|
|
514
514
|
|
515
515
|
|
516
516
|
|
517
|
-
<code class="ruby"> printf "%#{Node.max_node_name_length}s: %s\n", node.hostname, line.
|
517
|
+
<code class="ruby"> printf "%#{Node.max_node_name_length}s: %s\n", node.hostname, line.gsub(/\s*$/, '')</code>
|
518
518
|
</li>
|
519
519
|
</div>
|
520
520
|
|
data/lib/chake/backend.rb
CHANGED
@@ -27,7 +27,7 @@ module Chake
|
|
27
27
|
io.write(cmd)
|
28
28
|
io.close_write
|
29
29
|
io.each_line do |line|
|
30
|
-
printf "%#{Node.max_node_name_length}s: %s\n", node.hostname, line.
|
30
|
+
printf "%#{Node.max_node_name_length}s: %s\n", node.hostname, line.gsub(/\s*$/, '')
|
31
31
|
end
|
32
32
|
io.close
|
33
33
|
if $?
|
data/lib/chake/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -19,13 +19,13 @@ shared_examples "Chake::Backend" do |backend_class|
|
|
19
19
|
let(:backend) { backend_class.new(node) }
|
20
20
|
|
21
21
|
it('runs commands') do
|
22
|
-
io = StringIO.new("line 1\
|
22
|
+
io = StringIO.new("line 1\n line 2\n")
|
23
23
|
expect(IO).to receive(:popen).with(backend.command_runner + ['/bin/sh'], mode='w+', Hash).and_return(io)
|
24
24
|
expect(io).to receive(:write).with('something').ordered
|
25
25
|
expect(io).to receive(:close_write).ordered
|
26
26
|
expect(backend).to receive(:printf).with(anything, "myhost", "something")
|
27
27
|
expect(backend).to receive(:printf).with(anything, "myhost", "line 1")
|
28
|
-
expect(backend).to receive(:printf).with(anything, "myhost", "line 2")
|
28
|
+
expect(backend).to receive(:printf).with(anything, "myhost", " line 2")
|
29
29
|
backend.run('something')
|
30
30
|
end
|
31
31
|
|
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.21.
|
4
|
+
version: 0.21.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Terceiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -126,10 +126,7 @@ files:
|
|
126
126
|
- coverage/assets/0.11.0/smoothness/images/ui-icons_cd0a0a_256x240.png
|
127
127
|
- coverage/index.html
|
128
128
|
- examples/test/Rakefile
|
129
|
-
- examples/test/Vagrantfile
|
130
129
|
- examples/test/config.rb
|
131
|
-
- examples/test/cookbooks/basics/recipes/default.rb
|
132
|
-
- examples/test/cookbooks/example/files/default/test
|
133
130
|
- examples/test/cookbooks/example/files/host-homer/test.asc
|
134
131
|
- examples/test/cookbooks/example/recipes/default.rb
|
135
132
|
- examples/test/nodes.yaml
|
data/examples/test/Vagrantfile
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
# -*- mode: ruby -*-
|
2
|
-
# vi: set ft=ruby :
|
3
|
-
|
4
|
-
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
5
|
-
# configures the configuration version (we support older styles for
|
6
|
-
# backwards compatibility). Please don't change it unless you know what
|
7
|
-
# you're doing.
|
8
|
-
Vagrant.configure('2') do |config|
|
9
|
-
# The most common configuration options are documented and commented below.
|
10
|
-
# For a complete reference, please see the online documentation at
|
11
|
-
# https://docs.vagrantup.com.
|
12
|
-
|
13
|
-
# Every Vagrant development environment requires a box. You can search for
|
14
|
-
# boxes at https://vagrantcloud.com/search.
|
15
|
-
config.vm.box = 'debian/buster64'
|
16
|
-
|
17
|
-
# Disable automatic box update checking. If you disable this, then
|
18
|
-
# boxes will only be checked for updates when the user runs
|
19
|
-
# `vagrant box outdated`. This is not recommended.
|
20
|
-
# config.vm.box_check_update = false
|
21
|
-
|
22
|
-
# Create a forwarded port mapping which allows access to a specific port
|
23
|
-
# within the machine from a port on the host machine. In the example below,
|
24
|
-
# accessing "localhost:8080" will access port 80 on the guest machine.
|
25
|
-
# NOTE: This will enable public access to the opened port
|
26
|
-
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
27
|
-
|
28
|
-
# Create a forwarded port mapping which allows access to a specific port
|
29
|
-
# within the machine from a port on the host machine and only allow access
|
30
|
-
# via 127.0.0.1 to disable public access
|
31
|
-
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
|
32
|
-
|
33
|
-
# Create a private network, which allows host-only access to the machine
|
34
|
-
# using a specific IP.
|
35
|
-
# config.vm.network "private_network", ip: "192.168.33.10"
|
36
|
-
|
37
|
-
# Create a public network, which generally matched to bridged network.
|
38
|
-
# Bridged networks make the machine appear as another physical device on
|
39
|
-
# your network.
|
40
|
-
# config.vm.network "public_network"
|
41
|
-
|
42
|
-
# Share an additional folder to the guest VM. The first argument is
|
43
|
-
# the path on the host to the actual folder. The second argument is
|
44
|
-
# the path on the guest to mount the folder. And the optional third
|
45
|
-
# argument is a set of non-required options.
|
46
|
-
# config.vm.synced_folder "../data", "/vagrant_data"
|
47
|
-
|
48
|
-
# Provider-specific configuration so you can fine-tune various
|
49
|
-
# backing providers for Vagrant. These expose provider-specific options.
|
50
|
-
# Example for VirtualBox:
|
51
|
-
#
|
52
|
-
# config.vm.provider "virtualbox" do |vb|
|
53
|
-
# # Display the VirtualBox GUI when booting the machine
|
54
|
-
# vb.gui = true
|
55
|
-
#
|
56
|
-
# # Customize the amount of memory on the VM:
|
57
|
-
# vb.memory = "1024"
|
58
|
-
# end
|
59
|
-
#
|
60
|
-
# View the documentation for the provider you are using for more
|
61
|
-
# information on available options.
|
62
|
-
|
63
|
-
# Enable provisioning with a shell script. Additional provisioners such as
|
64
|
-
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
|
65
|
-
# documentation for more information about their specific syntax and use.
|
66
|
-
# config.vm.provision "shell", inline: <<-SHELL
|
67
|
-
# apt-get update
|
68
|
-
# apt-get install -y apache2
|
69
|
-
# SHELL
|
70
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
package 'openssh-server'
|
@@ -1 +0,0 @@
|
|
1
|
-
test
|