Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RubyPlatform"/> class.
 /// </summary>
 /// <param name="rubyScriptGeneratorOptions">The options of RubyScriptGenerator.</param>
 /// <param name="rubyVersionProvider">The Ruby version provider.</param>
 /// <param name="logger">The logger of Ruby platform.</param>
 /// <param name="detector">The detector of Ruby platform.</param>
 /// <param name="commonOptions">The <see cref="BuildScriptGeneratorOptions"/>.</param>
 /// <param name="rubyInstaller">The <see cref="RubyPlatformInstaller"/>.</param>
 public RubyPlatform(
     IOptions <RubyScriptGeneratorOptions> rubyScriptGeneratorOptions,
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IRubyVersionProvider rubyVersionProvider,
     ILogger <RubyPlatform> logger,
     IRubyPlatformDetector detector,
     RubyPlatformInstaller rubyInstaller)
 {
     _rubyScriptGeneratorOptions = rubyScriptGeneratorOptions.Value;
     _commonOptions       = commonOptions.Value;
     _rubyVersionProvider = rubyVersionProvider;
     _logger        = logger;
     _detector      = detector;
     _rubyInstaller = rubyInstaller;
 }
Exemple #2
0
 public TestRubyPlatform(
     IOptions <RubyScriptGeneratorOptions> rubyScriptGeneratorOptions,
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IRubyVersionProvider rubyVersionProvider,
     ILogger <RubyPlatform> logger,
     IRubyPlatformDetector detector,
     RubyPlatformInstaller rubyInstaller)
     : base(
         rubyScriptGeneratorOptions,
         commonOptions,
         rubyVersionProvider,
         logger,
         detector,
         rubyInstaller)
 {
 }