#695: fixed
This commit is contained in:
parent
fc4b408fae
commit
31fe2e045d
@ -10,7 +10,7 @@ module Devops
|
|||||||
PROJECT_TEST_TYPE = 4
|
PROJECT_TEST_TYPE = 4
|
||||||
STACK_TYPE = 5
|
STACK_TYPE = 5
|
||||||
|
|
||||||
attr_accessor :id, :file, :created_at, :updated_at, :created_by, :project, :deploy_env, :type, :chef_node_name, :host
|
attr_accessor :id, :file, :created_at, :updated_at, :created_by, :project, :deploy_env, :type, :chef_node_name, :host, :status
|
||||||
|
|
||||||
def initialize r
|
def initialize r
|
||||||
self.id = r["_id"]
|
self.id = r["_id"]
|
||||||
@ -24,6 +24,7 @@ module Devops
|
|||||||
self.host = r["host"]
|
self.host = r["host"]
|
||||||
self.created_at = r["created_at"].localtime unless r["created_at"].nil?
|
self.created_at = r["created_at"].localtime unless r["created_at"].nil?
|
||||||
self.updated_at = r["updated_at"].localtime unless r["updated_at"].nil?
|
self.updated_at = r["updated_at"].localtime unless r["updated_at"].nil?
|
||||||
|
self.status = r["status"]
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_hash_without_id
|
def to_hash_without_id
|
||||||
@ -36,7 +37,8 @@ module Devops
|
|||||||
"deploy_env" => self.deploy_env,
|
"deploy_env" => self.deploy_env,
|
||||||
"type" => self.type,
|
"type" => self.type,
|
||||||
"chef_node_name" => self.chef_node_name,
|
"chef_node_name" => self.chef_node_name,
|
||||||
"host" => self.host
|
"host" => self.host,
|
||||||
|
"status" => self.status
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user