Sha256: 51800c9c8ccb9f0567cad938d910bb4dcd3b64514ded6f947b2ce808b700c498

Contents?: true

Size: 934 Bytes

Versions: 11

Compression:

Stored size: 934 Bytes

Contents

require 'blocks/has_execute_command'

module Bake
  module Blocks
    
    class CommandLine
      include HasExecuteCommand
      
      def initialize(config, referencedConfigs)
        @config = config # Bake::Metamodel::CommandLine
        @commandLine = config.name
        @projectDir = config.get_project_dir
      end
      
      def execute
        return true if Bake.options.linkOnly
        return executeCommand(@commandLine, nil, @config.validExitCodes)
      end

      def startupStep
        return true if Bake.options.linkOnly
        return executeCommand(@commandLine, nil, @config.validExitCodes)
      end

      def exitStep
        return true if Bake.options.linkOnly
        return executeCommand(@commandLine, nil, @config.validExitCodes)
      end
            
      def clean
        # nothing to do here
        return true
      end
      
    end
    
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bake-toolkit-2.20.4 lib/blocks/commandLine.rb
bake-toolkit-2.20.3 lib/blocks/commandLine.rb
bake-toolkit-2.20.2 lib/blocks/commandLine.rb
bake-toolkit-2.20.1 lib/blocks/commandLine.rb
bake-toolkit-2.19.2 lib/blocks/commandLine.rb
bake-toolkit-2.19.1 lib/blocks/commandLine.rb
bake-toolkit-2.19.0 lib/blocks/commandLine.rb
bake-toolkit-2.18.0 lib/blocks/commandLine.rb
bake-toolkit-2.17.4 lib/blocks/commandLine.rb
bake-toolkit-2.17.3 lib/blocks/commandLine.rb
bake-toolkit-2.17.2 lib/blocks/commandLine.rb