Method: EASYFPM::CommandLine#run

Defined in:
lib/easyfpm/commandline.rb

#runObject

Run the command line given def run(*args)



255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# File 'lib/easyfpm/commandline.rb', line 255

def run()
  returnCode=true
  if @labels.empty?
    easyfpmpkg = EASYFPM::Packaging.new(@easyfpmconf)
    easyfpmpkg.verbose = @verbose
    easyfpmpkg.dryrun = @dryrun
    easyfpmpkg.debug = @debug
    returnCode=false unless easyfpmpkg.makeAll()
  else
    @labels.each do |label|
      easyfpmpkg = EASYFPM::Packaging.new(@easyfpmconf,label)
      easyfpmpkg.verbose = @verbose
      easyfpmpkg.dryrun = @dryrun
      easyfpmpkg.debug = @debug
      returnCode=false unless easyfpmpkg.make(label)
    end
  end
  return returnCode
end