From edff1c73b094d35ea7bbf981efa2220cf592ffbe Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Sun, 30 Mar 2014 21:29:44 -0400 Subject: [PATCH] Disable MethodLength cop around docker_container run method --- providers/container.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/providers/container.rb b/providers/container.rb index 23bf2938f1..551f89326f 100644 --- a/providers/container.rb +++ b/providers/container.rb @@ -272,6 +272,7 @@ def restart end end +# rubocop:disable MethodLength def run run_args = cli_args( 'cpu-shares' => new_resource.cpu_shares, @@ -306,6 +307,7 @@ def run new_resource.id(dr.stdout.chomp) service_create if service? end +# rubocop:enable MethodLength def running? @current_resource.status.include?('Up') if @current_resource.status