Class: Albacore::NugetsPack::Cmd

Inherits:
Object
  • Object
show all
Includes:
CrossPlatformCmd
Defined in:
lib/albacore/task_types/nugets_pack.rb

Constant Summary

Constants included from CrossPlatformCmd

CrossPlatformCmd::KILL_TIMEOUT

Instance Attribute Summary

Attributes included from CrossPlatformCmd

#pid

Instance Method Summary collapse

Methods included from CrossPlatformCmd

#chdir, #make_command, #normalise_slashes, #sh, #shie, #stop, #system, #which

Methods included from Logging

#debug, #err, #error, #fatal, #info, #puts, #trace, #warn

Constructor Details

#initialize(config) ⇒ Cmd

Returns a new instance of Cmd.



80
81
82
83
# File 'lib/albacore/task_types/nugets_pack.rb', line 80

def initialize config
  @executable = config.exe
  @config = config
end

Instance Method Details

#executeObject



85
86
87
88
89
90
91
# File 'lib/albacore/task_types/nugets_pack.rb', line 85

def execute
  @config.validate
  @config.fallbacks!
  invocations(@config).each do |parameters|
    system @executable, parameters, clr_command: true
  end
end