FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackmate/lib/stackmate/classmap.rb at master · stackmate/stackmate · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Oct 6, 2020. It is now read-only.
stackmate
/
stackmate
Public archive
Notifications
You must be signed in to change notification settings
Fork
12
Star
21
Code
Issues
2
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
stackmate
/
lib
/
stackmate
/
classmap.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (34 loc) · 1008 Bytes
Breadcrumbs
stackmate
/
lib
/
stackmate
/
classmap.rb
Copy path
File metadata and controls
38 lines (34 loc) · 1008 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module
StackMate
PROFILES
=
[
'CLOUDSTACK'
,
'NOOP'
]
@profile
=
'CLOUDSTACK'
CS_CLASS_MAP
=
{
'AWS::CloudFormation::WaitConditionHandle'
=>
'StackMate::WaitConditionHandle'
,
'AWS::CloudFormation::WaitCondition'
=>
'StackMate::WaitCondition'
,
'AWS::EC2::Instance'
=>
'StackMate::CloudStackInstance'
,
'AWS::EC2::SecurityGroup'
=>
'StackMate::CloudStackSecurityGroupAWS'
,
'Outputs'
=>
'StackMate::CloudStackOutput'
,
}
def
StackMate
.
class_for
(
cf_resource
)
#return cf_resource
case
@profile
when
'CLOUDSTACK'
if
(
cf_resource
.
start_with?
(
"CloudStack::"
)
)
c
=
cf_resource
.
split
(
'::'
)
[
1
]
"StackMate::CloudStack"
+
c
elsif
(
CS_CLASS_MAP
.
has_key?
(
cf_resource
)
)
CS_CLASS_MAP
[
cf_resource
]
else
cf_resource
end
when
'NOOP'
if
cf_resource
==
'Outputs'
'StackMate::Output'
else
'StackMate::NoOpResource'
end
end
end
def
StackMate
.
configure
(
profile
)
@profile
=
profile
end
end
Back
|
FazBrowse Home
|
New Git URL