From d57b7201c4eaba33fb7c42130610086894588d25 Mon Sep 17 00:00:00 2001 From: Gilles Cornu Date: Wed, 8 Jun 2016 23:31:03 +0200 Subject: [PATCH] provisioners/ansible_local: align code style Remove parenthesis to all "machine.communicate." method calls in the "cap/guest" files... --- .../provisioners/ansible/cap/guest/arch/ansible_install.rb | 4 ++-- .../ansible/cap/guest/debian/ansible_install.rb | 6 +++--- .../ansible/cap/guest/freebsd/ansible_install.rb | 2 +- .../ansible/cap/guest/posix/ansible_installed.rb | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb b/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb index 062bea01c..a6a2749e7 100644 --- a/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb +++ b/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb @@ -11,8 +11,8 @@ module VagrantPlugins if install_mode == :pip raise Ansible::Errors::AnsiblePipInstallIsNotSupported else - machine.communicate.sudo("pacman -Syy --noconfirm") - machine.communicate.sudo("pacman -S --noconfirm ansible") + machine.communicate.sudo "pacman -Syy --noconfirm" + machine.communicate.sudo "pacman -S --noconfirm ansible" end end diff --git a/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb b/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb index 3ce214bf3..20c818628 100644 --- a/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb +++ b/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb @@ -31,9 +31,9 @@ if [ x$CODENAME == 'xwheezy' ]; then fi INLINE_CRIPT - machine.communicate.sudo(install_backports_if_wheezy_release) - machine.communicate.sudo("apt-get update -y -qq") - machine.communicate.sudo("apt-get install -y -qq ansible") + machine.communicate.sudo install_backports_if_wheezy_release + machine.communicate.sudo "apt-get update -y -qq" + machine.communicate.sudo "apt-get install -y -qq ansible" end def self.pip_setup(machine) diff --git a/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb b/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb index 4bb683c45..947f6b934 100644 --- a/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb +++ b/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb @@ -11,7 +11,7 @@ module VagrantPlugins if install_mode == :pip raise Ansible::Errors::AnsiblePipInstallIsNotSupported else - machine.communicate.sudo("yes | pkg install ansible") + machine.communicate.sudo "yes | pkg install ansible" end end diff --git a/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb b/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb index 16abae9bf..329eab8a9 100644 --- a/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb +++ b/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb @@ -14,7 +14,7 @@ module VagrantPlugins command << "&& ansible --version | grep 'ansible #{version}'" end - machine.communicate.test(command, sudo: false) + machine.communicate.test command, sudo: false end end