Module: Bashly::Script::Introspection::Visibility

Included in:
Command, EnvironmentVariable, Flag
Defined in:
lib/bashly/script/introspection/visibility.rb

Instance Method Summary collapse

Instance Method Details

#visibilityObject

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 !options['private']
    :public
  elsif Settings.private_reveal_key
    :semi_private
  else
    :private
  end
end