Skip to content

Commit

Permalink
Simplify getters
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmb committed Oct 27, 2017
1 parent 2c27c5e commit a6ff545
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/kubernetes-deploy/discoverable_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,15 @@ def self.child_classes
end

def self.prunable?
return @prunable if defined?(@prunable)
false
@prunable
end

def self.predeploy?
return @predeploy if defined?(@predeploy)
false
@predeploy
end

def self.timeout
return @timeout if defined?(@timeout)
super
@timeout
end

def self.identity
Expand Down

0 comments on commit a6ff545

Please sign in to comment.