Add explicit "run" dependency tag
This commit is contained in:
parent
06dbec5aaf
commit
c556b3dc09
@ -1,7 +1,7 @@
|
|||||||
require 'options'
|
require 'options'
|
||||||
|
|
||||||
module Dependable
|
module Dependable
|
||||||
RESERVED_TAGS = [:build, :optional, :recommended]
|
RESERVED_TAGS = [:build, :optional, :recommended, :run]
|
||||||
|
|
||||||
def build?
|
def build?
|
||||||
tags.include? :build
|
tags.include? :build
|
||||||
@ -15,6 +15,10 @@ module Dependable
|
|||||||
tags.include? :recommended
|
tags.include? :recommended
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def run?
|
||||||
|
tags.include? :run
|
||||||
|
end
|
||||||
|
|
||||||
def required?
|
def required?
|
||||||
!build? && !optional? && !recommended?
|
!build? && !optional? && !recommended?
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user