Class: StarCitizen::Rake::ExtractDefaultProfile
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- StarCitizen::Rake::ExtractDefaultProfile
- Defined in:
- lib/starcitizen/rake/extract_default_profile.rb
Overview
Extract defaultProfile.xml from GameData.pak
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
Instance Method Summary collapse
-
#initialize(name = :extract_default_profile) {|_self| ... } ⇒ ExtractDefaultProfile
constructor
A new instance of ExtractDefaultProfile.
Constructor Details
#initialize(name = :extract_default_profile) {|_self| ... } ⇒ ExtractDefaultProfile
Returns a new instance of ExtractDefaultProfile.
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/starcitizen/rake/extract_default_profile.rb', line 14 def initialize name = :extract_default_profile @name = name @output_dir = '.' yield self if block_given? desc "Extract defaultProfile.xml from GameData.pak" task(name) do require 'starcitizen-tools' StarCitizen::Pak.new('GameData').extract 'Libs/Config/defaultProfile.xml', output_dir: @output_dir end end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/starcitizen/rake/extract_default_profile.rb', line 11 def name @name end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
12 13 14 |
# File 'lib/starcitizen/rake/extract_default_profile.rb', line 12 def output_dir @output_dir end |