remove unused methods
This commit is contained in:
parent
a96ea68922
commit
80f39e4e54
@ -73,10 +73,6 @@ module Devops
|
||||
}
|
||||
end
|
||||
|
||||
def self.create_from_json! json
|
||||
Image.new( JSON.parse(json) )
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -30,10 +30,6 @@ module Devops
|
||||
key
|
||||
end
|
||||
|
||||
def self.create_from_json json
|
||||
Key.new( JSON.parse(json) )
|
||||
end
|
||||
|
||||
def filename
|
||||
File.basename(self.path)
|
||||
end
|
||||
|
||||
@ -75,17 +75,12 @@ module Devops
|
||||
user
|
||||
end
|
||||
|
||||
def self.create_from_json json
|
||||
User.new( JSON.parse(json) )
|
||||
end
|
||||
|
||||
def to_hash_without_id
|
||||
o = {
|
||||
{
|
||||
"email" => self.email,
|
||||
"password" => self.password,
|
||||
"privileges" => self.privileges
|
||||
}
|
||||
o
|
||||
end
|
||||
|
||||
def check_privileges cmd, required_privelege
|
||||
|
||||
Loading…
Reference in New Issue
Block a user