Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaned up Servers Collection! #17

Merged
merged 2 commits into from Jul 9, 2014
Merged

Conversation

plribeiro3000
Copy link
Member

Refactored Servers Collection by moving some methods to new requests. Also shared the #get_by_name and #get_by_uuid with all models.

… Also shared the #get_by_name and #get_by_uuid with all models
class Real
def builtin_templates
data = @connection.request(:parser => Fog::Parsers::XenServer::GetRecords.new, :method => "VM.get_all_records")
data.keep_if { |vm| vm[:is_a_template] and !vm[:other_config]['default_template'].nil? }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use && instead of and.
Line is too long. [98/80]

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.55%) when pulling 7bef7ca on clean_servers_collection into ba2a559 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.55%) when pulling 7be02a8 on clean_servers_collection into ba2a559 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.55%) when pulling 7be02a8 on clean_servers_collection into ba2a559 on master.

plribeiro3000 added a commit that referenced this pull request Jul 9, 2014
@plribeiro3000 plribeiro3000 merged commit ebd5619 into master Jul 9, 2014
@plribeiro3000 plribeiro3000 deleted the clean_servers_collection branch July 9, 2014 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants