Class: Albacore::CpackAppSpec::Task
- Inherits:
-
Object
- Object
- Albacore::CpackAppSpec::Task
- Includes:
- Albacore::CrossPlatformCmd, Logging
- Defined in:
- lib/albacore/cpack_app_spec.rb
Constant Summary
Constants included from Albacore::CrossPlatformCmd
Albacore::CrossPlatformCmd::KILL_TIMEOUT
Instance Attribute Summary
Attributes included from Albacore::CrossPlatformCmd
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(opts) ⇒ Task
constructor
create a new task instance with the given opts.
Methods included from Albacore::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(opts) ⇒ Task
create a new task instance with the given opts
45 46 47 48 |
# File 'lib/albacore/cpack_app_spec.rb', line 45 def initialize opts raise ArgumentError, 'opts is nil' if opts.nil? @opts = opts end |
Instance Method Details
#execute ⇒ Object
50 51 52 53 54 55 56 57 |
# File 'lib/albacore/cpack_app_spec.rb', line 50 def execute warn 'executing cpack app spec task, but there are no input files [cpack_app_spec::task#execute]' if @opts.get(:files).empty? cpack_package @opts.get(:out), @opts.get(:files), @opts.get(:configuration) end |