Sha256: 361de8254b354f6955ea83965ffa9a17c52c2b01b457b08a110436d06c27c406

Contents?: true

Size: 776 Bytes

Versions: 61

Compression:

Stored size: 776 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 run
        return true if Bake.options.linkOnly
        return executeCommand(@commandLine, nil, @config.validExitCodes, @config.echo)
      end

      def execute
        return run()
      end

      def startupStep
        return run()
      end

      def exitStep
        return run()
      end

      def cleanStep
        return run()
      end

      def clean
        # nothing to do here
        return true
      end

    end

  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
bake-toolkit-2.46.0 lib/blocks/commandLine.rb
bake-toolkit-2.45.0 lib/blocks/commandLine.rb
bake-toolkit-2.44.1 lib/blocks/commandLine.rb
bake-toolkit-2.44.0 lib/blocks/commandLine.rb
bake-toolkit-2.43.2 lib/blocks/commandLine.rb
bake-toolkit-2.43.1 lib/blocks/commandLine.rb
bake-toolkit-2.43.0 lib/blocks/commandLine.rb
bake-toolkit-2.42.3 lib/blocks/commandLine.rb
bake-toolkit-2.42.2 lib/blocks/commandLine.rb
bake-toolkit-2.42.1 lib/blocks/commandLine.rb
bake-toolkit-2.42.0 lib/blocks/commandLine.rb
bake-toolkit-2.41.4 lib/blocks/commandLine.rb
bake-toolkit-2.41.3 lib/blocks/commandLine.rb
bake-toolkit-2.41.2 lib/blocks/commandLine.rb
bake-toolkit-2.41.1 lib/blocks/commandLine.rb
bake-toolkit-2.41.0 lib/blocks/commandLine.rb
bake-toolkit-2.40.1 lib/blocks/commandLine.rb
bake-toolkit-2.40.0 lib/blocks/commandLine.rb
bake-toolkit-2.39.1 lib/blocks/commandLine.rb
bake-toolkit-2.39.0 lib/blocks/commandLine.rb