stack classes without self.provider, test

This commit is contained in:
amartynov 2015-08-18 15:55:58 +03:00
parent b622919bcf
commit 2006be82d3
3 changed files with 9 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module Devops
# details: {type: Hash, nil: true} # Hash type isn't supported yet # details: {type: Hash, nil: true} # Hash type isn't supported yet
def initialize attrs={} def initialize attrs={}
self.provider = self.class.provider # self.provider = self.class.provider
self.id = attrs['id'] self.id = attrs['id']
self.project = attrs['project'] self.project = attrs['project']

View File

@ -11,6 +11,12 @@ module Devops
details['StackStatus'] if details details['StackStatus'] if details
end end
=begin
def self.provider
'ec2'
end
=end
end end
end end
end end

View File

@ -11,9 +11,11 @@ module Devops
details[:stack_status] || details['stack_status'] if details details[:stack_status] || details['stack_status'] if details
end end
=begin
def self.provider def self.provider
'openstack' 'openstack'
end end
=end
end end
end end
end end