Module: Faalis::Generators::Concerns::Dependency

Included in:
DashboardScaffold
Defined in:
lib/faalis/generators/concerns/dependency.rb

Overview

This Concern adds support of dependencies to scaffold using deps key in json file. You can provide a list of scaffold dependencies which should mention as dependecy of Angularjs module of scaffold. Example:

  ....
  "deps": [
      "module1",
      "module2"
  ],
  ...

Instance Method Summary (collapse)

Instance Method Details

- (Object) deps

Return a list of dependencies.



31
32
33
# File 'lib/faalis/generators/concerns/dependency.rb', line 31

def deps
  resource_data['deps']
end

- (Boolean) have_dependency?

Is there any dependency ?

Returns:

  • (Boolean)


26
27
28
# File 'lib/faalis/generators/concerns/dependency.rb', line 26

def have_dependency?
  resource_data.include? 'deps'
end