Sha256: a16193098a3cf2b0fc886f10ee5e0977ddf74b791b5f21441885cb345e343314

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 KB

Contents

module KineticSdk
  class Task

    # Export all structure definitions to `export_directory`.
    #
    # Exports the following items:
    #
    # * sources
    # * trees
    # * routines
    # * handlers
    # * groups
    # * policy rules
    # * categories
    # * access keys
    #
    # @param headers [Hash] hash of headers to send, default is basic authentication
    # @param export_opts [Hash] hash of export options
    #   - :include_workflows => true|false (default: false)
    # @return nil
    def export(headers=header_basic_auth, export_opts={})
      export_sources(headers)
      export_trees(nil,headers,export_opts) # Includes routines when nil passed
      export_handlers(headers)
      export_groups(headers)
      export_policy_rules(headers)
      export_categories(headers)
      export_access_keys(headers)
    end


    # Export all structure definitions except trees and routines to `export_directory`.
    #
    # Exports the following items:
    #
    # * sources
    # * handlers
    # * groups
    # * policy rules
    # * categories
    # * access keys
    #
    # @param headers [Hash] hash of headers to send, default is basic authentication
    # @return nil
    def export_all_except_trees(headers=header_basic_auth)
      export_sources(headers)
      export_handlers(headers)
      export_groups(headers)
      export_policy_rules(headers)
      export_categories(headers)
      export_access_keys(headers)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kinetic_sdk-5.0.29 lib/kinetic_sdk/task/lib/export.rb
kinetic_sdk-5.0.28 lib/kinetic_sdk/task/lib/export.rb
kinetic_sdk-5.0.27 lib/kinetic_sdk/task/lib/export.rb
kinetic_sdk-5.0.26 lib/kinetic_sdk/task/lib/export.rb
kinetic_sdk-5.0.25 lib/kinetic_sdk/task/lib/export.rb
kinetic_sdk-5.0.24 lib/kinetic_sdk/task/lib/export.rb