lib/splash/config.rb in prometheus-splash-0.8.4 vs lib/splash/config.rb in prometheus-splash-0.8.5
- old
+ new
@@ -12,12 +12,16 @@
class ConfigLinter
def initialize
@lints_present = {:logs => [:label, :log, :pattern ],
- :processes => [:process, :patterns ]}
+ :processes => [:process, :patterns ],
+ :commands => [:name, :desc, :command ]}
@lints_types = {:logs => {:label => Symbol, :log => String, :pattern => String, :retention => Hash},
- :processes => {:process => Symbol, :patterns => Array, :retention => Hash}}
+ :processes => {:process => Symbol, :patterns => Array, :retention => Hash},
+ :commands => {:name => Symbol, :desc => String, :command => String, :schedule => Hash,
+ :retention => Hash, :on_failure => Symbol, :on_success => Symbol,
+ :user => String, :delegate_to => Hash}}
end
def verify(options ={})
status = :success
missings = []