def get_solution_stack(self): # Get solution stack from command line arguments solution_string = self.app.pargs.platform # Get solution stack from config file, if exists if not solution_string: try: solution_string = commonops.get_default_solution_stack() except NotInitializedError: solution_string = None if solution_string: commonops.get_solution_stack(solution_string) return solution_string
def get_latest_solution_stack(self, solution_stack): full_platform = commonops.get_solution_stack(solution_stack) platform_name = full_platform.name.lower() latest_platform = commonops.get_latest_solution_stack( full_platform.version).name return platform_name, latest_platform
def get_solution_stack(self): # Get solution stack from command line arguments solution_string = self.app.pargs.platform # Get solution stack from config file, if exists if not solution_string: try: solution_string = commonops.get_default_solution_stack() except NotInitializedError: solution_string = None # Validate that the platform exists if solution_string: if is_platform_arn(solution_string): elasticbeanstalk.describe_platform_version(solution_string) else: commonops.get_solution_stack(solution_string) return solution_string