Class: Pfm::Command::Exec

Inherits:
Base
  • Object
show all
Defined in:
lib/iapi-idlc-sdk-pfm/command/exec.rb

Instance Method Summary collapse

Methods inherited from Base

#build_base_dir, #build_dir, #build_exists?, #build_setup, #deploy_setup, #deploy_setupv2, #inf_base_dir, #initialize, #run_with_default_options, #templates_dir, #verbose?

Methods included from Helpers

debug, err, msg, system_command

Constructor Details

This class inherits a constructor from Pfm::Command::Base

Instance Method Details

#needs_help?(params) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/iapi-idlc-sdk-pfm/command/exec.rb', line 19

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

#needs_version?(_params) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
17
# File 'lib/iapi-idlc-sdk-pfm/command/exec.rb', line 14

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

#run(params) ⇒ Object



9
10
11
12
# File 'lib/iapi-idlc-sdk-pfm/command/exec.rb', line 9

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