#695: fixed
This commit is contained in:
parent
fc4b408fae
commit
31fe2e045d
@ -10,7 +10,7 @@ module Devops
|
||||
PROJECT_TEST_TYPE = 4
|
||||
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
|
||||
self.id = r["_id"]
|
||||
@ -24,6 +24,7 @@ module Devops
|
||||
self.host = r["host"]
|
||||
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.status = r["status"]
|
||||
end
|
||||
|
||||
def to_hash_without_id
|
||||
@ -36,7 +37,8 @@ module Devops
|
||||
"deploy_env" => self.deploy_env,
|
||||
"type" => self.type,
|
||||
"chef_node_name" => self.chef_node_name,
|
||||
"host" => self.host
|
||||
"host" => self.host,
|
||||
"status" => self.status
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user