Sha256: 260a2469c26b826fb95ba8044c268f1cc89243e7f666b258cdebf9a7ae7d0d70

Contents?: true

Size: 280 Bytes

Versions: 11

Compression:

Stored size: 280 Bytes

Contents

module ThreeScaleToolbox
  module Tasks
    class CopyPoliciesTask
      include CopyTask

      def call
        puts 'copy proxy policies'
        source_policies = source.policies
        target.update_policies('policies_config' => source_policies)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
3scale_toolbox-0.15.0 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.14.0 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.13.0 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.12.4 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.12.3 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.12.2 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.11.0 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.10.0 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.9.0 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.8.0 lib/3scale_toolbox/tasks/copy_policies_task.rb
3scale_toolbox-0.7.0 lib/3scale_toolbox/tasks/copy_policies_task.rb