def setup_stage(name, options = {}, &block)
      stages[name] = ''

      if options.has_key?(:desc)
        stages[name] = options[:desc]
      end

      if name.to_s == get(:stage).to_s
        @loaded_stage = name

        instance_eval(&block)
      end
    end
def setup_stage(name, options = {}, &block)
      stages[name] = ''

      if options.has_key?(:desc)
        stages[name] = options[:desc]
      end

      if name.to_s == get(:stage).to_s
        @loaded_stage = name

        instance_eval(&block)
      end
    end
Defines a stage

 @param name [Symbol] stage name
 @param options [Hash] stage options
 @param block [Block] the stage configuration