Module: SfCli::Sf::Project::GenerateManifest
- Included in:
- Core
- Defined in:
- lib/sf_cli/sf/project/generate_manifest.rb
Instance Method Summary collapse
-
#generate_manifest(name: nil, output_dir: nil, api_version: nil, metadata: [], from_org: nil, source_dir: nil, raw_output: false) ⇒ Object
Create a project manifest that lists the metadata components you want to deploy or retrieve.
Instance Method Details
#generate_manifest(name: nil, output_dir: nil, api_version: nil, metadata: [], from_org: nil, source_dir: nil, raw_output: false) ⇒ Object
Create a project manifest that lists the metadata components you want to deploy or retrieve
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/sf_cli/sf/project/generate_manifest.rb', line 17 def generate_manifest(name: nil, output_dir: nil, api_version: nil, metadata: [], from_org: nil, source_dir: nil, raw_output: false) flags = { :name => name, :"metadata" => (.empty? ? nil : .join(' ')), :"from-org" => from_org, :"source-dir" => source_dir, :"output-dir" => output_dir, :"api-version" => api_version, } action = __method__.to_s.tr('_', ' ') command_output_format = raw_output ? :human : :json redirect_type = raw_output ? nil : :null_stderr output = exec(action, flags: flags, redirection: redirect_type, raw_output: raw_output, format: command_output_format) return output if raw_output output['result']['path'] end |