Class: Albacore::NugetsRestore::RemoveSourceCmd
- Inherits:
-
Object
- Object
- Albacore::NugetsRestore::RemoveSourceCmd
- Includes:
- CrossPlatformCmd, Logging
- Defined in:
- lib/albacore/task_types/nugets_restore.rb
Constant Summary
Constants included from CrossPlatformCmd
CrossPlatformCmd::KILL_TIMEOUT
Instance Attribute Summary
Attributes included from CrossPlatformCmd
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(exe, source) ⇒ RemoveSourceCmd
constructor
A new instance of RemoveSourceCmd.
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(exe, source) ⇒ RemoveSourceCmd
Returns a new instance of RemoveSourceCmd.
15 16 17 18 19 |
# File 'lib/albacore/task_types/nugets_restore.rb', line 15 def initialize exe, source @executable = exe @parameters = %W[sources remove -name #{source.name} -source #{source.uri}] mono_command end |
Instance Method Details
#execute ⇒ Object
20 21 22 23 24 |
# File 'lib/albacore/task_types/nugets_restore.rb', line 20 def execute system @executable, @parameters, :verbose => true do |ok, status| ok end end |