Sha256: 8c5cbfa0ff405ee66f32e8e0d544c62ec15a7c9b2f03c24a039e6a4ff5b9e47f

Contents?: true

Size: 759 Bytes

Versions: 41

Compression:

Stored size: 759 Bytes

Contents

require_relative 'has_execute_command'

module Bake
  module Blocks

    class CommandLine
      include HasExecuteCommand

      def initialize(config)
        @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

41 entries across 41 versions & 1 rubygems

Version Path
bake-toolkit-2.67.0 lib/blocks/commandLine.rb
bake-toolkit-2.66.0 lib/blocks/commandLine.rb
bake-toolkit-2.65.2 lib/blocks/commandLine.rb
bake-toolkit-2.65.1 lib/blocks/commandLine.rb
bake-toolkit-2.65.0 lib/blocks/commandLine.rb
bake-toolkit-2.64.4 lib/blocks/commandLine.rb
bake-toolkit-2.64.3 lib/blocks/commandLine.rb
bake-toolkit-2.64.2 lib/blocks/commandLine.rb
bake-toolkit-2.64.1 lib/blocks/commandLine.rb
bake-toolkit-2.64.0 lib/blocks/commandLine.rb
bake-toolkit-2.63.2 lib/blocks/commandLine.rb
bake-toolkit-2.63.1 lib/blocks/commandLine.rb
bake-toolkit-2.63.0 lib/blocks/commandLine.rb
bake-toolkit-2.62.0 lib/blocks/commandLine.rb
bake-toolkit-2.61.0 lib/blocks/commandLine.rb
bake-toolkit-2.60.2 lib/blocks/commandLine.rb
bake-toolkit-2.60.0 lib/blocks/commandLine.rb
bake-toolkit-2.59.0 lib/blocks/commandLine.rb
bake-toolkit-2.58.0 lib/blocks/commandLine.rb
bake-toolkit-2.57.0 lib/blocks/commandLine.rb