Module: SfCli::Sf::Project::DeployStart
- Defined in:
 - lib/sf_cli/sf/project/deploy_start.rb
 
Defined Under Namespace
Classes: Result
Constant Summary collapse
- DeployedFile =
 Data.define(:full_name, :type, :state, :file_path)
Instance Method Summary collapse
- 
  
    
      #deploy_start(metadata: nil, manifest: nil, source_dir: nil, target_org: nil, raw_output: false, metadata_dir: nil, tests: nil, test_level: nil, api_version: nil, wait: nil, dry_run: false, ignore_conflicts: false, ignore_errors: false, ignore_warnings: false, single_package: false)  ⇒ Result 
    
    
  
  
  
  
  
  
  
  
  
    
Deploy metadata to an org from your local project.
 
Instance Method Details
#deploy_start(metadata: nil, manifest: nil, source_dir: nil, target_org: nil, raw_output: false, metadata_dir: nil, tests: nil, test_level: nil, api_version: nil, wait: nil, dry_run: false, ignore_conflicts: false, ignore_errors: false, ignore_warnings: false, single_package: false) ⇒ Result
Deploy metadata to an org from your local project.
      32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67  | 
    
      # File 'lib/sf_cli/sf/project/deploy_start.rb', line 32 def deploy_start(metadata: nil, manifest: nil, source_dir: nil, target_org: nil, raw_output: false, metadata_dir: nil, tests: nil, test_level: nil, api_version: nil, wait: nil, dry_run: false, ignore_conflicts: false, ignore_errors: false, ignore_warnings: false, single_package: false) flags = { :manifest => manifest, :metadata => &.join(' '), :"source-dir" => source_dir, :"target-org" => target_org, :"api-version" => api_version, :"metadata-dir" => , :tests => tests&.join(' '), :"test-level" => test_level, :"wait" => wait, } switches = { :"dry-run" => dry_run, :"ignore-conflicts" => ignore_conflicts, :"ignore-errors" => ignore_errors, :"ignore-warnings" => ignore_warnings, :"single-package" => single_package, } action = __method__.to_s.tr('_', ' ') command_output_format = raw_output ? :human : :json redirect_type = raw_output ? nil : :null_stderr output = exec(action, flags: flags, switches: switches, redirection: redirect_type, raw_output: raw_output, format: command_output_format) return output if raw_output Result.new( done: output['result']['done'], id: output['result']['id'], details: output['result']['details'], status: output['result']['status'], success: output['result']['success'], files: output['result']['files'].map{|f| create_deployed_file(f)} ) end  |