Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

Commit a9af70a

Browse files
committed
Merge pull request #29 from mlafeldt/rsync-verbose
Stop running Rsync in verbose mode
2 parents 84643b7 + 84fa0cb commit a9af70a

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ FEATURES:
77
`ssh_config(5)` for a list of available options and their format. (Thanks to
88
@berniedurfee who requested this feature.)
99
* Allow to specify one or more custom Rsync options on the command line, e.g.
10-
`chef-runner --rsync-option "--progress"`. See `rsync(1)` for a list of
10+
`chef-runner --rsync-option --progress`. See `rsync(1)` for a list of
1111
available options.
1212
* Add `--color=false` option to disable colorized output.
1313

@@ -30,6 +30,8 @@ BREAKING CHANGES:
3030
expanded to `<cookbook>::foo`. Local recipes now need to be passed as `::foo`
3131
instead. This change also simplifies run list composition when multiple
3232
cookbooks are involved, e.g. `chef-runner apt postgresql::client nginx`.
33+
* No longer run Rsync in verbose mode by default. To get back the old output,
34+
you need to use `--rsync-option --verbose` now.
3335

3436
[omnibus package]: https://godoc.org/github.com/mlafeldt/chef-runner/chef/omnibus
3537

driver/kitchen/driver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestDriverInterface(t *testing.T) {
1616
func TestNewDriver(t *testing.T) {
1717
util.InDir("../../testdata", func() {
1818
sshOpts := []string{"LogLevel=debug"}
19-
rsyncOpts := []string{"--quiet"}
19+
rsyncOpts := []string{"--verbose"}
2020
drv, err := NewDriver("default-ubuntu-1404", sshOpts, rsyncOpts)
2121
if assert.NoError(t, err) {
2222
assert.Equal(t, "127.0.0.1", drv.SSHClient.Host)

driver/ssh/driver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestDriverInterface(t *testing.T) {
1414

1515
func TestNewDriver(t *testing.T) {
1616
sshOpts := []string{"LogLevel=debug"}
17-
rsyncOpts := []string{"--quiet"}
17+
rsyncOpts := []string{"--verbose"}
1818
drv, err := NewDriver("some-user@some-host:1234", sshOpts, rsyncOpts)
1919
if assert.NoError(t, err) {
2020
assert.Equal(t, "some-host", drv.SSHClient.Host)

driver/vagrant/driver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestNewDriver(t *testing.T) {
2323
defer os.Setenv("PATH", oldPath)
2424

2525
sshOpts := []string{"LogLevel=debug"}
26-
rsyncOpts := []string{"--quiet"}
26+
rsyncOpts := []string{"--verbose"}
2727
drv, err := NewDriver("some-machine", sshOpts, rsyncOpts)
2828
if assert.NoError(t, err) {
2929
defer os.RemoveAll(".chef-runner")

resolver/resolver_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestAutoResolve_Dir(t *testing.T) {
6363
})
6464

6565
assert.Equal(t, []string{"rsync", "--archive", "--delete", "--compress",
66-
"--verbose", "metadata.rb", CookbookPath + "/cats"}, lastCmd)
66+
"metadata.rb", CookbookPath + "/cats"}, lastCmd)
6767
}
6868

6969
func TestAutoResolve_DirUpdate(t *testing.T) {
@@ -78,7 +78,7 @@ func TestAutoResolve_DirUpdate(t *testing.T) {
7878
})
7979

8080
assert.Equal(t, []string{"rsync", "--archive", "--delete", "--compress",
81-
"--verbose", "metadata.rb", CookbookPath + "/cats"}, lastCmd)
81+
"metadata.rb", CookbookPath + "/cats"}, lastCmd)
8282
}
8383

8484
func TestAutoResolve_NoCookbooks(t *testing.T) {

rsync/rsync.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ var MirrorClient = &Client{
4343
Archive: true,
4444
Delete: true,
4545
Compress: true,
46-
Verbose: true,
4746
}
4847

4948
// Command returns the rsync command that will be executed by Copy.

0 commit comments

Comments
 (0)