Module: Bashly::Script::Introspection::Visibility
- Included in:
- Command, EnvironmentVariable, Flag
- Defined in:
- lib/bashly/script/introspection/visibility.rb
Instance Method Summary collapse
-
#visibility ⇒ Object
Returns :public, :private, or :semi_private based on the
privateoption of the host, in conjunction withSettings.private_reveal_key.
Instance Method Details
#visibility ⇒ Object
Returns :public, :private, or :semi_private based on the private option of the host, in conjunction with Settings.private_reveal_key.
7 8 9 10 11 12 13 14 15 |
# File 'lib/bashly/script/introspection/visibility.rb', line 7 def visibility if !['private'] :public elsif Settings.private_reveal_key :semi_private else :private end end |