Module: SfCli::Sf::Org::ListMetadata
- Defined in:
- lib/sf_cli/sf/org/list_metadata.rb
Defined Under Namespace
Classes: MetadataList
Constant Summary collapse
- Metadata =
Data.define( :created_by_id, :created_by_name, :created_date, :file_name, :full_name, :id, :last_modified_by_id, :last_modified_by_name, :last_modified_date, :manageable_state, :type) do def name full_name end end
Instance Method Summary collapse
-
#list_metadata(metadata, folder: nil, target_org: nil, api_version: nil, output_file: nil, raw_output: false) ⇒ MetadataList
List the metadata components and properties of a specified type.
Instance Method Details
#list_metadata(metadata, folder: nil, target_org: nil, api_version: nil, output_file: nil, raw_output: false) ⇒ MetadataList
List the metadata components and properties of a specified type
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/sf_cli/sf/org/list_metadata.rb', line 21 def (, folder: nil, target_org: nil, api_version: nil, output_file: nil, raw_output: false) flags = { :"metadata-type" => , :"folder" => folder, :"target-org" => target_org, :"api-version" => api_version, :"output-file" => output_file, } action = __method__.to_s.tr('_', ' ') output = org_exec(action, flags: flags, redirection: :null_stderr, raw_output: raw_output) return output if raw_output MetadataList.new(output['result']) end |