Class: MRuby::Command::Archiver
- Inherits:
-
MRuby::Command
- Object
- MRuby::Command
- MRuby::Command::Archiver
- Defined in:
- ext/enterprise_script_service/mruby/lib/mruby/build/command.rb
Constant Summary
Constants inherited from MRuby::Command
Instance Attribute Summary collapse
-
#archive_options ⇒ Object
Returns the value of attribute archive_options.
Attributes inherited from MRuby::Command
Instance Method Summary collapse
-
#initialize(build) ⇒ Archiver
constructor
A new instance of Archiver.
- #run(outfile, objfiles) ⇒ Object
Methods inherited from MRuby::Command
Constructor Details
#initialize(build) ⇒ Archiver
Returns a new instance of Archiver.
231 232 233 234 235 |
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 231 def initialize(build) super @command = ENV['AR'] || 'ar' = 'rs %{outfile} %{objs}' end |
Instance Attribute Details
#archive_options ⇒ Object
Returns the value of attribute archive_options.
229 230 231 |
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 229 def end |
Instance Method Details
#run(outfile, objfiles) ⇒ Object
237 238 239 240 241 242 243 244 245 |
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 237 def run(outfile, objfiles) mkdir_p File.dirname(outfile) _pp "AR", outfile.relative_path if MRUBY_BUILD_HOST_IS_CYGWIN _run , { :outfile => cygwin_filename(outfile), :objs => cygwin_filename(objfiles).join(' ') } else _run , { :outfile => filename(outfile), :objs => filename(objfiles).join(' ') } end end |