Sha256: d197f1fb34f78c8379e42417a408708a14e5255f85856aa53774b329be255cd0

Contents?: true

Size: 537 Bytes

Versions: 47

Compression:

Stored size: 537 Bytes

Contents

require 'idlc-sdk-pfm/command/base'
require 'mixlib/shellout'

module Pfm
  module Command
    class Exec < Pfm::Command::Base
      banner 'Usage: pfm exec SYSTEM_COMMAND'

      def run(params)
        exec(*params)
        raise 'Exec failed without an exception, your ruby is buggy' # should never get here
      end

      def needs_version?(_params)
        # Force version to get passed down to command
        false
      end

      def needs_help?(params)
        ['-h', '--help'].include? params[0]
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
idlc-sdk-pfm-1.2.2 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.2.1 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.2.0 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.1.4 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.1.3 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.1.2 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.1.1 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.1.0 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.21 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.20 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.19 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.18 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.17 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.16 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.15 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.14 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.13 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.12 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.11 lib/idlc-sdk-pfm/command/exec.rb
idlc-sdk-pfm-1.0.10 lib/idlc-sdk-pfm/command/exec.rb