Skip to content

Commit

Permalink
Disable MethodLength cop around docker_container run method
Browse files Browse the repository at this point in the history
  • Loading branch information
bflad committed Mar 31, 2014
1 parent 7228132 commit edff1c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def restart
end
end

# rubocop:disable MethodLength
def run
run_args = cli_args(
'cpu-shares' => new_resource.cpu_shares,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit edff1c7

Please sign in to comment.