Class: Extension::Models::ServerConfig::Development

Inherits:
Base
  • Object
show all
Includes:
SmartProperties
Defined in:
lib/project_types/extension/models/server_config/development.rb

Constant Summary collapse

VALID_TEMPLATES =
[
  "javascript",
  "javascript-react",
  "typescript",
  "typescript-react",
]
CURRENT_DIRECTORY =
"."

Class Method Summary collapse

Methods inherited from Base

#to_h, #to_hash

Class Method Details

.find(type) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/project_types/extension/models/server_config/development.rb', line 22

def self.find(type)
  case type.downcase
  when "web_pixel_extension"
    ["javascript"]
  else
    VALID_TEMPLATES
  end
end