Class: Disloku::Commands::Build
- Inherits:
-
BaseCoreCommand
- Object
- BaseCommand
- BaseCoreCommand
- Disloku::Commands::Build
- Defined in:
- lib/disloku/commands/Build.rb
Instance Attribute Summary
Attributes inherited from BaseCoreCommand
#config, #options, #repository
Attributes inherited from BaseCommand
#config, #options, #repository
Instance Method Summary collapse
- #executeCommand(from) ⇒ Object
-
#initialize(cliOptions) ⇒ Build
constructor
A new instance of Build.
Methods inherited from BaseCoreCommand
#execute, #loadConfiguration, #resolveTargets
Methods inherited from BaseCommand
Constructor Details
#initialize(cliOptions) ⇒ Build
Returns a new instance of Build.
9 10 11 |
# File 'lib/disloku/commands/Build.rb', line 9 def initialize(cliOptions) super(cliOptions) end |
Instance Method Details
#executeCommand(from) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/disloku/commands/Build.rb', line 13 def executeCommand(from) changesets = @repository.getChangeSets(from) folderInput = { :options => @options, :changesets => changesets, :target => nil, } resolveTargets([@options.target]).each() do |t| folderInput[:target] = t Tasks::FolderTask.new(folderInput).execute() end convertedPath = OsCommands.convertPath(@options.packageDir) Log.instance.info("Opening package directory #{convertedPath}") @options.getCommand(:openDirCmd, convertedPath).execute() end |