From 46b300f409d142aafef0c07175f1c3c8a9353bc6 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Wed, 9 Sep 2015 12:13:13 +0200 Subject: [PATCH] finish linting backend Signed-off-by: Dominik Richter --- lib/vulcano/backend/docker.rb | 8 ++++---- lib/vulcano/backend/mock.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/vulcano/backend/docker.rb b/lib/vulcano/backend/docker.rb index e9e481976..6a7786637 100644 --- a/lib/vulcano/backend/docker.rb +++ b/lib/vulcano/backend/docker.rb @@ -9,9 +9,9 @@ module Vulcano::Backends @conf = conf @files = {} id = @conf['host'] || - fail("You must specify a docker container ID.") + fail('You must specify a docker container ID.') @container = ::Docker::Container.get(id) || - fail("Can't find Docker container #{id}") + fail("Can't find Docker container #{id}") end def file(path) @@ -23,9 +23,9 @@ module Vulcano::Backends '/bin/sh', '-c', cmd ]) CommandResult.new(stdout.join, stderr.join, exit_status) - rescue ::Docker::Error::DockerError => err + rescue ::Docker::Error::DockerError => _ raise - rescue => err + rescue => _ # @TODO: differentiate any other error raise end diff --git a/lib/vulcano/backend/mock.rb b/lib/vulcano/backend/mock.rb index 098a24967..f6d442a11 100644 --- a/lib/vulcano/backend/mock.rb +++ b/lib/vulcano/backend/mock.rb @@ -1,7 +1,7 @@ # encoding: utf-8 module Vulcano::Backends - Struct.new("MockCommand", :stdout, :stderr, :exit_status) + Struct.new('MockCommand', :stdout, :stderr, :exit_status) class Mock < Vulcano.backend(1) name 'mock'