stack classes without self.provider, test
This commit is contained in:
parent
b622919bcf
commit
2006be82d3
@ -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']
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user