Module: Bashly::Script::Introspection::Dependencies

Included in:
Command
Defined in:
lib/bashly/script/introspection/dependencies.rb

Instance Method Summary collapse

Instance Method Details

#dependenciesObject

Returns an array of Dependency objects



6
7
8
9
10
11
12
# File 'lib/bashly/script/introspection/dependencies.rb', line 6

def dependencies
  return [] unless options['dependencies']

  @dependencies ||= options['dependencies'].map do |key, value|
    Dependency.from_config key, value
  end
end