lib/right_chimp/resources/Executable.rb in right_chimp-2.1.25.2 vs lib/right_chimp/resources/Executable.rb in right_chimp-2.1.26
- old
+ new
@@ -4,14 +4,12 @@
module Chimp
#
# This task contains parameters that describe a script/task to be executed
#
class Executable
+ attr_accessor :params, :delay
- attr_writer :params
- attr_reader :params
-
def initialize
@params = {
"position"=>5,
"right_script"=>{
"created_at"=>"",
@@ -21,12 +19,13 @@
"is_head_version"=>false,
"script"=>"",
"name"=>"dummy_name",
"description"=>"dummy_description"
},
- "recipe"=>nil,
- "apply"=>"operational"
+ "recipe"=>nil,
+ "apply"=>"operational"
}
+ @delay = 0
end
def href
@params['right_script']['href']
end