Class: Albacore::NugetsPack::Cmd
- Inherits:
-
Object
- Object
- Albacore::NugetsPack::Cmd
- 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
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(config) ⇒ Cmd
constructor
A new instance of Cmd.
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
#execute ⇒ Object
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 |