Sha256: 8f5d1cb6597da0dfe071f7ca25a1ba0c5532965274a6e85f6149ac7e6f394da1

Contents?: true

Size: 796 Bytes

Versions: 15

Compression:

Stored size: 796 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 executeCommand(@commandLine, nil, @config.validExitCodes)
      end

      def startupStep
        return executeCommand(@commandLine, nil, @config.validExitCodes)
      end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bake-toolkit-2.17.1 lib/blocks/commandLine.rb
bake-toolkit-2.16.1 lib/blocks/commandLine.rb
bake-toolkit-2.15.0 lib/blocks/commandLine.rb
bake-toolkit-2.14.0 lib/blocks/commandLine.rb
bake-toolkit-2.13.1 lib/blocks/commandLine.rb
bake-toolkit-2.13.0 lib/blocks/commandLine.rb
bake-toolkit-2.12.2 lib/blocks/commandLine.rb
bake-toolkit-2.12.1 lib/blocks/commandLine.rb
bake-toolkit-2.12.0 lib/blocks/commandLine.rb
bake-toolkit-2.11.4 lib/blocks/commandLine.rb
bake-toolkit-2.11.3 lib/blocks/commandLine.rb
bake-toolkit-2.11.2 lib/blocks/commandLine.rb
bake-toolkit-2.11.1 lib/blocks/commandLine.rb
bake-toolkit-2.11.0 lib/blocks/commandLine.rb
bake-toolkit-2.10.3 lib/blocks/commandLine.rb