Skip to content

Commit

Permalink
bonsai
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Nov 8, 2017
1 parent d52e380 commit 9af6a7c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Metrics/AbcSize:
Max: 50

Metrics/ClassLength:
Max: 120
Max: 130

Metrics/BlockLength:
Max: 60
Expand Down
1 change: 0 additions & 1 deletion lib/awspec/generator/template.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module Awspec::Generator
# rubocop:disable Metrics/ClassLength
class Template
def self.generate(type)
@type = type
Expand Down
8 changes: 4 additions & 4 deletions lib/awspec/type/ec2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ def id
@id ||= resource_via_client.instance_id if resource_via_client
end

def security_group_count
resource_via_client.security_groups.count
end

STATES = %w(
pending running shutting-down
terminated stopping stopped
Expand Down Expand Up @@ -141,9 +145,5 @@ def match_group_names?(sg_names)
def resource_security_groups
resource_via_client.security_groups
end

def security_group_count
resource_via_client.security_groups.count
end
end
end
1 change: 0 additions & 1 deletion lib/awspec/type/security_group.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module Awspec::Type
# rubocop:disable Metrics/ClassLength
class SecurityGroup < ResourceBase
aws_resource Aws::EC2::SecurityGroup
tags_allowed
Expand Down

0 comments on commit 9af6a7c

Please sign in to comment.