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 Feb 7, 2017
1 parent 03f47ca commit 06c67fd
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 @@ -87,6 +87,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 @@ -112,14 +118,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 06c67fd

Please sign in to comment.