Method: ShopifyCLI::Project.current_project_type

Defined in:
lib/shopify_cli/project.rb

.current_project_typeObject

will fetch the project type of the current project. This is mostly used for internal project type loading, you should not normally need this.

#### Returns

  • ‘type` - a symbol of the name of the project type identifier. i.e. [rails, node] This will be nil if the user is not in a current project.

#### Example

type = ShopifyCLI::Project.current_project_type


65
66
67
68
# File 'lib/shopify_cli/project.rb', line 65

def current_project_type
  return unless has_current?
  current.config["project_type"].to_sym
end