Sha256: 03d5ab377fceb0b5a84863f32301455b7ce35f45a9ea4d07c73aafa291e65578
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
class ParametersHelper < ExtensionHelper # rubocop:disable Metrics/CyclomaticComplexity def param_type(param) case param[:type] when 'string' 'hudson.model.StringParameterDefinition' when 'bool' 'hudson.model.BooleanParameterDefinition' when 'text' 'hudson.model.TextParameterDefinition' when 'password' 'hudson.model.PasswordParameterDefinition' when 'choice' 'hudson.model.ChoiceParameterDefinition' when 'file' 'hudson.model.FileParameterDefinition' else 'hudson.model.StringParameterDefinition' end end # rubocop:enable Metrics/CyclomaticComplexity end
Version data entries
2 entries across 2 versions & 1 rubygems