Module: Mmi
- Defined in:
- lib/mmi.rb,
lib/mmi/asset.rb,
lib/mmi/semver.rb,
lib/mmi/version.rb,
lib/mmi/constants.rb,
lib/mmi/github_api.rb,
lib/mmi/source/url.rb,
lib/mmi/interactive.rb,
lib/mmi/modrinth_api.rb,
lib/mmi/install_utils.rb,
lib/mmi/source/github.rb,
lib/mmi/install_record.rb,
lib/mmi/modloader/none.rb,
lib/mmi/source/modrinth.rb,
lib/mmi/assets_processor.rb,
lib/mmi/modloader/fabric.rb,
lib/mmi/content_hash/base.rb,
lib/mmi/interactive/assets.rb,
lib/mmi/mod_file_processor.rb,
lib/mmi/content_hash/sha512.rb,
lib/mmi/interactive/updater.rb,
lib/mmi/property_attributes.rb,
lib/mmi/interactive/modloader.rb
Defined Under Namespace
Modules: Constants, ContentHash, GithubApi, InstallUtils, Interactive, Modloader, ModrinthApi, PropertyAttributes, Source
Classes: Asset, AssetsProcessor, InstallRecord, InvalidAttributeError, MissingAttributeError, ModFileProcessor, Semver, ValidationError
Constant Summary
collapse
- VERSION =
'0.2.3'.freeze
Class Method Summary
collapse
Class Method Details
.debug(text) ⇒ Object
9
10
11
12
13
|
# File 'lib/mmi.rb', line 9
def self.debug(text)
if ENV['MMI_ENV'] == 'dev'
puts text
end
end
|
.fail!(text) ⇒ Object
23
24
25
26
|
# File 'lib/mmi.rb', line 23
def self.fail!(text)
Kernel.warn text
Kernel.exit 1
end
|
.info(text) ⇒ Object
15
16
17
|
# File 'lib/mmi.rb', line 15
def self.info(text)
puts text
end
|
.warn(text) ⇒ Object
19
20
21
|
# File 'lib/mmi.rb', line 19
def self.warn(text)
puts text
end
|