Class: Dependabot::Ecosystem

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/ecosystem.rb

Defined Under Namespace

Classes: VersionManager

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, package_manager:, language: nil) ⇒ Ecosystem

Returns a new instance of Ecosystem.



175
176
177
178
179
180
181
182
183
# File 'lib/dependabot/ecosystem.rb', line 175

def initialize(
  name:,
  package_manager:,
  language: nil
)
  @name = T.let(name, String)
  @package_manager = T.let(package_manager, VersionManager)
  @language = T.let(language, T.nilable(VersionManager))
end

Instance Attribute Details

#languageObject (readonly)

Returns the value of attribute language.



201
202
203
# File 'lib/dependabot/ecosystem.rb', line 201

def language
  @language
end

#nameObject (readonly)

Returns the value of attribute name.



189
190
191
# File 'lib/dependabot/ecosystem.rb', line 189

def name
  @name
end

#package_managerObject (readonly)

Returns the value of attribute package_manager.



195
196
197
# File 'lib/dependabot/ecosystem.rb', line 195

def package_manager
  @package_manager
end

Instance Method Details

#deprecated?Boolean

Returns:

  • (Boolean)


206
207
208
# File 'lib/dependabot/ecosystem.rb', line 206

def deprecated?
  package_manager.deprecated?
end

#raise_if_unsupported!Object



218
219
220
# File 'lib/dependabot/ecosystem.rb', line 218

def raise_if_unsupported!
  package_manager.raise_if_unsupported!
end

#unsupported?Boolean

Returns:

  • (Boolean)


212
213
214
# File 'lib/dependabot/ecosystem.rb', line 212

def unsupported?
  package_manager.unsupported?
end