Skip to content

Commit

Permalink
Remove 'private' keyword
Browse files Browse the repository at this point in the history
RuboCop said that this instance of 'private' was a 'useless access modifier'
  • Loading branch information
davidcpell committed Nov 16, 2016
1 parent c2cdc08 commit 3f2c8b1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/kitchen/driver/aws/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ def self.get_credentials(profile_name, access_key_id, secret_access_key, session
end
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity

def self.get_shared_creds(profile_name)
::Aws::SharedCredentials.new(:profile_name => profile_name)
rescue ::Aws::Errors::NoSuchProfileError
false
end

def create_instance(options)
resource.create_instances(options)[0]
end
Expand All @@ -97,14 +103,6 @@ def resource
@resource ||= ::Aws::EC2::Resource.new
end

private

def self.get_shared_creds(profile_name)
::Aws::SharedCredentials.new(:profile_name => profile_name)
rescue ::Aws::Errors::NoSuchProfileError
false
end

end

end
Expand Down

0 comments on commit 3f2c8b1

Please sign in to comment.