Skip to content

Commit

Permalink
Rename type to disabled_api_termination
Browse files Browse the repository at this point in the history
  • Loading branch information
tanaka masato committed Sep 14, 2015
1 parent 3364401 commit 445a9f9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe ec2('my-ec2-tag-name') do
it { should belong_to_vpc('my-vpc') }
it { should belong_to_subnet('subnet-1234a567') }
it { should have_eip('123.0.456.789') }
it { should be_disabled_termination }
it { should be_disabled_api_termination }
end
```

Expand Down
2 changes: 1 addition & 1 deletion doc/resource_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end
```


### be_disabled_termination
### be_disabled_api_termination

### be_pending

Expand Down
2 changes: 1 addition & 1 deletion lib/awspec/type/ec2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(id)
end
end

def disabled_termination?
def disabled_api_termination?
ret = find_ec2_attribute(@id, 'disableApiTermination')
ret[:disable_api_termination][:value]
end
Expand Down
2 changes: 1 addition & 1 deletion spec/type/ec2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
its(:image_id) { should eq 'ami-abc12def' }
its(:public_ip_address) { should eq '123.0.456.789' }
its(:private_ip_address) { should eq '10.0.1.1' }
it { should be_disabled_termination }
it { should be_disabled_api_termination }
it { should have_security_group('sg-1a2b3cd4') }
it { should have_security_group('my-security-group-name') }
it { should have_security_group('my-security-group-tag-name') }
Expand Down

0 comments on commit 445a9f9

Please sign in to comment.