diff --git a/apps/dashboard/app/lib/smart_attributes/attributes/auto_scripts.rb b/apps/dashboard/app/lib/smart_attributes/attributes/auto_scripts.rb index 7bc7acd5cc..73b83324b4 100644 --- a/apps/dashboard/app/lib/smart_attributes/attributes/auto_scripts.rb +++ b/apps/dashboard/app/lib/smart_attributes/attributes/auto_scripts.rb @@ -2,7 +2,6 @@ module SmartAttributes class AttributeFactory - AUTO_SCRIPT_EXTENSIONS = ['sh', 'csh', 'bash', 'slurm', 'sbatch', 'qsub'].freeze # Build this attribute object. Must specify a valid directory in opts @@ -31,16 +30,15 @@ def self.script_options_from_directory(dir) module Attributes class AutoScripts < Attribute - # Value of auto_scripts attribute # Defaults to first script path in the project # @return [String] attribute value def value return nil if !opts[:value] && opts[:options].empty? - + (opts[:value] || opts[:options].first.last).to_s end - + def widget 'select' end